Hash: sets or obtains the segments following the # In the href attribute. Href: set or obtain the entire URL as a string. Through the following test, you will find the difference, put the code in your HTML, and then open it in a browser. Test
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
Window. location. href after the jump, the session becomes invalid in a php call window. location. href after the jump, the session becomes invalid on the page after the jump. how can this problem be solved?
Reply to discussion
What are the URL, SCR, and href differences in HTML URLs?URL: Uniform Resource Locators (Uniform Resource Locator), a Web browser requests a page from a Web server via a URL.URLs are not attributes, src and href are attributes, SRC is used to
Window. navigate only supports ie browsers, while window. location. href is compatible with all browsers, so I do not know why window. navigate appears. Here I will introduce it to you.
The first note is that window. navigate and window. location.
A tag is used as a button,There are four ways to stop the event effect when handling JavaScript actions.
This can be considered in the following order.
You can use the button tag, directly with the button tag.
When you click the tag, The onclick event is executed first, and then the action under the href attribute. If you do not want to execute the action under the href attribute, The onclick operation must return false, if you are interested, you can
The first note is that window. navigate and window. location. href both implement Page Link jump. The following describes their differences. For more information, see window. navigate and window. location. href.
Window. navigate ("http://jb51.net/
Write code often confuse these two properties, in the end is the href or src,href identifies a hypertext reference, used in link and a and other elements,href is a reference and page association, is to establish a connection between the current
The first note is that window. navigate and window. location. href both implement Page Link jump. The following describes their differences.Window. navigate ("http://jb51.net/") This method is only for IE, not applicable to Firefox and other
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.