中文(繁体)
<!--將以下程式碼加入<body>區域中:--> <form> <p> <input type="button" value="回傳" onClick="history.go(-1)" name="button " class="pt9"> <input TYPE="button" NAME="view" VALUE="查看本範例的原始碼" OnClick="window.location="view-source:" +window.location.href" class= "pt9"> </p> </form> <form> <p><input TYPE="button" VALUE="返回上一步" ONCLICK="history.back(-1)"></p> </ form> <form> <p><input TYPE="button" VALUE="刷新按鈕一" ONCLICK="ReloadButton()"></p> </form> <script language="JavaScript"><!-- function ReloadButton(){location.href="index.htm";} // --></script> <form> <p><input TYPE="button" VALUE="刷新按鈕二" onClick="history. go(0)"> </p> </form> <form> <p><input TYPE="button" VALUE="回首頁按鈕" ONCLICK="HomeButton()"></p> </form> <script language="JavaScript"><!-- function HomeButton(){location.href="http://www.downcodes.com";} // --></script> <form> <p>< input TYPE="button" VALUE="彈出警告框" ONCLICK="AlertButton()"></p> </form> <script language="JavaScript"><!-- function AlertButton(){window.alert( "要多光臨呀!");} // --></script> <form> <p><input TYPE="button" VALUE="狀態列資訊" ONCLICK="StatusButton()"></p > </form> <script language="JavaScript"><!-- function StatusButton(){window.status="要多多光臨呀! ";} // --></script> <form> <p><input TYPE="button" VALUE="背景色轉換" onClick="BgButton()"></p> </form> <script >function BgButton(){ if (document.bgColor=='#00ffff') {document.bgColor='#ffffff';} else{document.bgColor='#00ffff';} } </script> <form> < p><input TYPE="button" VALUE="開啟新視窗" ONCLICK="NewWindow()"></p> </form> <script language="JavaScript"><!-- function NewWindow(){window .open("/index.htm","","height=240,width=340,status=no,location=no,toolbar=no,directories=no,menubar=no");} // --> </script>