What are the ways to jump to a page by clicking the button tag in html
This article mainly explains "what are the ways to jump to the page by clicking on the button tag in html?", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "what are the ways to jump to a page by clicking on the button tag in html?"
Method 1: use the onclick event
Or use the button tag directly
Baidu
Method 2: coat an a tag on the button tag
Baidu
Or use the
Method 3: use the JavaScript function
Functionjump () {
_ window.location.href= "http://www.baidu.com/";
}
/ / or
/ / or Baidu
At this point, I believe that everyone on the "html by clicking the button tag to achieve page jump methods have a deeper understanding", might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!