If you do not set the href property below IE6, you will not respond to hover. Double-clicking will select the label's parent container instead of the one-a label (this problem exists under IE).
The code is as follows
Copy Code
Original: href and onclick usages, distinctions, precedence levels in Html a tagsIf you do not set the href attribute under IE6, hover will not respond. When you double-click the label's parent container is selected instead of the one-a-label (the
The following code executes the SUBGO () function, Point me Here, javascript:void (0), does not have a substantial effect, it is just a dead link, the function that executes is subgo (). Point me with Point me Difference.In fact #包含了一个位置信息默认的锚是
The following code executes the SUBGO () function, Point me Here, javascript:void (0), does not have a substantial effect, it is just a dead link, the function that executes is subgo (). Point me with Point me Difference.In fact #包含了一个位置信息默认的锚是
When using tags, we often bind other events such as OnClick, when we assign a value of "#" to the href attribute of the tag, "Javacript:;", "javacript:void (0);" such asOne, href= "Javacript:;" In this case the browser will appear to access
Reprint: http://blog.csdn.net/u010552788/article/details/49385487Javascript:void (0) means to do nothing! He is not a page URL, but a JavaScript statement void (0), Void is an operator that specifies to evaluate an expression but does not return a
href= "javascript:;" > a > href= "#">a>These two kinds of wording. What is the difference between these two types of writing? What kind of writing is more standard?href= "#" refers to the connection to the current page, in fact, is meaningless,
A href = "javascript:" With a href = "#",
These two methods. What are the differences between the two statements? Which one is used to write more standards?
Connecting href = "#" means connecting to the current page is meaningless, and the page
Fix a bug in the story. For IE6, clicking the gif pause bug only occurs when the javascript: pseudo-protocol does not have a semicolon.
Let me give you a perspective.Adding an href attribute to a tag means the following:
: The
1. The linked onclick event is executed first, followed by the action under the HREF attribute (page jump, or JavaScript pseudo-link);Assuming that both the href and the onclick are present in the link, the onclick must get a return value of false
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.