1. Link to a page
<input type= "button" Name= "Submit" value= "class=" btn "onclick=" location.href= "filename.html" "/>"
2. Return (equivalent back)
<input name= "Submit2" type= "button" class= "btn" onclick= "location.href= ' Javascript:history.go" ( -1); ' "value=" return "/ >
3. Open a new page
<input type= "button" Name= "Submit2" value= "Determine" class= "btn" onclick= "window.open (' filename.html ')"/>
4. Open a new window without Borders
<input type= "button" Name= "Submit2" value= "determines class=" btn "onclick=" Javascript:window.open (' filename.html ', ', ', ' Width=720,height=500,resizable=yes,scrollbars=yes,status=no ') "/>
5. Open a new page and point to another page
<input type= "button" Name= "Submit2" value= "to determine" class= "btn" onclick= "window.open (' filename.html '); location.href= ' Http://www.cxybl.com ' "/>
6. Open a new window without Borders and point to another page
<input type= "button" Name= "Submit2" value= "to determine" class= "btn" onclick= "Javascript:window.open (' http://www.cxybl.com ', ', ' width=720,height=500,resizable=yes,scrollbars=yes,status=no '); window.location= ' filename.html '; "/>
7. Click the button to eject Confirm Alert window
Mode one:
<input type= "button" Name= "Submit1" value= "OK" class= "BTN"
onclick= ' alert (' Confirm submission? '); location.href= ' filename.html '; return false; ">
Mode two:
<input type= "button" Name= "Submit2" value= "OK" class= "BTN"
Onclick= "If" (confirm) (' Confirm commit? ') location.href= ' filename.html '; return false; ">