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
Explanation of the differences between a href = # And a href = javascript: void (0)
A href = "#"> after clicking the link, the page will be rolled up to the TOP, # The default anchor is # TOP
after you click the link, the page does not move and
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
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
A 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 function as above, different browsers will have differences.Click the
A 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 function as above, different browsers will have differences.Click the
A 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 function as above, different browsers will have differences.Click the
Javascript: What does void (0) mean and the difference between href = # And href = javascriptvoid (0,
In Javascript, void is an operator that specifies to calculate an expression but does not return a value.
The format of the void operator is as
Good text to push: A tag of the href= "javascript:void (0)" and href= "#" DifferenceZhang Xin Xu This article is also very interesting, as a slight code neat programmer, the tangled when tangled: is the habit or norms!? Question: Why use href=
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.