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

View: 12190|Reply: 0

[HTML/HTML5] Click the input button to jump to the specified URL code

[Copy link]
Posted on 12/30/2014 10:39:59 AM | | |
  • After clicking the button, it is not only to submit the form, but also to have other functions, such as calling a new JavaScript function, jumping to a new URL, etc., this code is to click the button and jump to a new address, using the location.href attribute.


[mw_shl_code=html,true] <title>Click the button to jump to the specified URL code</title>
<input type="button" value="exit" onclick="location.href='index.jsp'"/>[/mw_shl_code]




Previous:It's almost over, so let's talk about my life these days
Next:How to use JavaScript to implement page jumping
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