In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the HTML button click button case analysis of the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this HTML button click button case analysis article will have a harvest, let's take a look.
The code for html is as follows:
Copy the code
The code is as follows:
The mobile phone number is unlucky.
...
Test immediately
After the coding is completed, there is a problem in the browser compatibility test: the click of the button under ie6 and ie7 is not reflected, the jump does not reach the specified url, but other browsers can jump normally.
I always thought that there was a problem in the js control code, so I tracked and debugged for a long time, but never found the problem. Later, it was discovered that button did not specify type as submit, so I wondered if this was the problem.
After changing the type attribute of adding button to submit, the functions of ie6 and ie7 are normal.
Did not pay attention to such a problem in the past, stepped on the pit, so to search for information to query and verify.
Copy the code
The code is as follows:
Definition and usage the type property specifies the type of button. Tip: always specify the type property for the button. The default type of Internet Explorer is "button", while the default value in other browsers (including the W3C specification) is "submit". As you can see, by default in other browsers, form is submitted after clicking on button, while ie does not submit form by default. The default value of type is also a browser compatibility issue, so under mark.
This is the end of the article on "case Analysis of HTML button Click Button". Thank you for reading! I believe you all have a certain understanding of the knowledge of "HTML button click button case analysis". If you want to learn more knowledge, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.