1. Link to a page
<Input type = "button" name = "Submit" value = "Confirm" class = "btn"
Onclick = "location.hrefw.'filename.html '"/>
2. Return (equivalent to back)
<Input name = "Submit2" type = "button" class = "btn"
Onclick = "location. href = 'javascript: history. go (-1); '" value = "return"/>
3. Open a new webpage
<Input type = "button" name = "Submit2" value = "Confirm" class = "btn"
Onclick = "Getting Started open('filename.html ')"/>
4. open a new window without Borders
<Input type = "button" name = "Submit2" value = "true" class = "btn" onclick = "javascript: Invalid parameter 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 = "" 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 = "Confirm" class = "btn" onclick = "javascript: window. open ('HTTP: // www.cxybl.com ', '', 'width = 720, height = 500, resizable = yes, scrollbars = yes, status = no'); registry.location='filename.html '; "/>
7. click the button to bring up the confirmation alert window.
Method 1:
<Input type = "button" name = "Submit1" value = "OK" class = "btn"
OnClick = "alert ('Are you sure you want to submit? '); Location. href = 'filename.html'; return false; ">
Method 2:
<Input type = "button" name = "Submit2" value = "OK" class = "btn"
OnClick = "if (confirm ('Are you sure you want to submit? ') Location. href = 'filename.html'; return false; ">