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
First, let's take a look at several location types. the differences between href and href are as follows. differences between href and js implement the iframe framework function of a webpage. If you are interested, please take a look at the
click the link, the page will scroll up to the top of the page, # The default anchor point is #TOP Click the link, the page does not move, only the link is opened function as above, different browsers will have differences.Click the link, do not
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
1. Location:
Is an image in a Windows window. Its main function is to direct the current webpage to anotherHref is a property of a Web page. It can be used to direct another web page and refresh the page.
2.
A href = "#"> after clicking the link,
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
As we all know, the most important function of a label is to implement hyperlinks and anchor points. Also, most people think that the most important role of a tag is to implement hyperlinks, and today I happen to be writing a label , so let's sort
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,
Reprint: http://blog.csdn.net/fightplane/article/details/5190037A href= "#" > click on the link, the page will scroll up to the top of the page, # The default anchor point is #TOP Click the link, the page does not move, only the link is opened
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.