JavaScript/VBScript範例:
<SCRIPT>
function CreatePage(Name) {
document.writeln("<HTML>");
document.writeln("<HEAD>");
document.writeln("<TITLE>JavaScript/VBScript 範例</TITLE>");
document.writeln("</HEAD>");
document.writeln("<BODY>");
document.writeln("<CENTER>");
document.writeln("<H1>"+Name+",您好!</H1>");
document.writeln("<H1>這是一個獨一無二、專門為您而產生的網頁!</H1>");
document.writeln("</CENTER>");
document.writeln("</BODY>");
document.writeln("</HTML>");
}
</SCRIPT>
<FORM>
請輸入您的大名:<INPUT TYPE="TEXT" NAME="NAME" VALUE="">
<INPUT TYPE="SUBMIT" VALUE="送出" onClick="CreatePage(this.form.NAME.value)">
</FORM>