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
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
Location. href user summary, location. href Summary
*. Location. href usage:Top. location. href = "url" opens the url on the top-level page (jump out of the Framework)Self. location. href = "url" only opens the url address on this pageParent.
Location. href has many usage methods in js mainly to control page navigation or jump to the upper-level framework page. Below I have sorted out the location for you. the href address jump parameter introduction is helpful to you.
Location. href in
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 #包含了一个位置信息默认的锚是
We often have click events in the A tab:
1.
A href= "Javascript:js_method ();"
This is a common approach on our platform, but this approach can easily go wrong when passing this parameter, and javascript: The protocol as the HREF
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 #包含了一个位置信息默认的锚是
Copy Code code as follows:
Test
As a result, the href value of the A element in the result.innerhtml of the second pop-up in the IE6 and IE7 browsers became an absolute path.
In fact, people have encountered these
There are href values in the a.jsp. "Use in b.jspGet value, run debug find is a bunch of garbledAt first I thought it was the JSP overall encoding method is not correct, so the following changes:Change the beginning of the b.jsp topageencoding= "Utf-
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.