This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11569|Reply: 0

[HTML/HTML5] input clicks on the link to another page, various operations, and the button clicks to enter the other

[Copy link]
Posted on 2/2/2015 10:45:30 AM | | |
1. Link to a page
<input type="button" name="Submit" value="OK" class="btn" onclic remove k="location.href='filename.html'" />

2. Return (equivalent to backward)
<input name="Submit2" type="button" class="btn"line-height: 1.5;"> remove n.href='javascript:history.go(-1); '" value="return" />

3. Open a new webpage
<input type="button" name="Submit2" value="OK" class="btn" onclic remove k="window.open('filename.html')" />

4. Open a new borderless window
<input type="button" name="Submit2" value="OK" class="btn"line-height: 1.5;"> remove w.open('filename.html','','width=720,height=500,resizable=yes,scrollbars=yes,status= no')" />

5. Open a new webpage and point to another page at the same time
<input type="button" name="Submit2" value="OK" class="btn"line-height: 1.5;"> remove w.open('filename.html'); locatio removed n.href='http://www.itsvse.com'" />

6. Open a new borderless window while pointing to another page
<input type="button" name="Submit2" value="OK" class="btn" oncli remove ck="javascript:windo remove w.open('http://www.itsvse.com','','width=720,height=500,resizable=yes,scrollbars= yes,status=no'); window.location='filename.html'; " />

7. Click the button to pop up the confirmation alert window
Method 1:
<input type="button" name="Submit1" value="OK" class="btn"
onClic removes k="alert('does it confirm commit? '); locatio removes n.href= 'filename.html'; return false; " >
Method 2:
<input type="button" name="Submit2" value="OK" class="btn"
onClick="if (confirm('Confirm commit? '))locatio removes n.href= 'filename.html'; return false; " >




Previous:Open the link when you click the Input button
Next:Tencent's QQ group relationship data was leaked, and user privacy was not guaranteed, and Tencent did not respond (picture)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com