This article mainly introduces window in IE6 browser. location. it is a very practical technique to analyze the cause and solution of the invalid href, and compare the correct and wrong examples, for more information, see the example in this article. location. the href is invalid. Share it with you for your reference.
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/") This method is only for IE, not applicable to Firefox and other bro
Summary of the inconsistency between paths in IE and FF browsers using window. location. href
I encountered a problem last Friday. I used Firefox when I was working on a project. Last week, I completed the function of a small forum because I did not need to log on to the Forum, user logon is required only when posting and replying. Therefore, an interceptor is added to the system. If you do not log on to th
I didn't seem to have encountered this problem before, or maybe I didn't care about it. My blog content pages are all judged. The rule is, if top. if location is not a content page, you can jump to the content page. If someone saves my webpage or uses iframe to include it, the page will jump directly to my article page, the previous test was successful. Today, I saw a website containing my page. I think my homepage has nothing to do with iframe, but a
Sometimes we need to get the url of the current webpage for our judgment. Generally, we use location. href to get the js url link string: location. href
It can be intercepted to obtain the transmission parameters, which are commonly used as follows:
Location.
Solution when the url data volume in window. location. href is too large
This article describes how to solve the problem when the url data volume in window. location. href is too large. For more information, see
Let's talk about the problem today.
To export an excel file, you need to upload a large amount of data to
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 browsers, in the html dom Window Object, there is no list of windows. navigate this method, so this method should be used as little as possible, and it is best to forge
Use window. location. href is used to refresh another framework page and write ASP. net program, we often encounter page Jump problems, we often use Response. redirect: if the customer wants to use the prompt during the jump, this will not work, for example:
Response. Write ("script" alert ('Congratulations, registration successful! '); Script ");
Response. Redirect ("main.html ");
At this time, our
Reprinted from smile
Write ASP. NET
Program We often encounter page Jump problems. We often use response. Redirect. If the customer wants to use the prompt during the jump, this will not work, for example:
Response. Write (" ");Response. Redirect ("main.html ");
At this time, our prompt content will jump without coming out, and there is no difference with response. Redirect ("main.html.
Then we use the followingCodeTest:
Response. Write (" ");Response. Write (" ");
This allows us to
Write ASP. NET
Program We often encounter page Jump problems. We often use response. Redirect. If the customer wants to use the prompt during the jump, this will not work, for example:
Response. Write (" ");Response. Redirect ("main.html ");
At this time, our prompt content will jump without coming out, and there is no difference with response. Redirect ("main.html.
Then we use the followingCodeTest:
Response. Write (" ");Response. Write (" ");
This allows us to jump to the page aft
Write ASP. net program, we often encounter page Jump problems, we often use response. redirect: if the customer wants to use the prompt during the jump, this will not work, for example:
Response. Write (" ");Response. Redirect ("main.html ");
At this time, our prompt content will jump without coming out, and there is no difference with response. Redirect ("main.html.
Then we use the following code to test:
Response. Write (" ");Response. Write (" ");
This allows us to jump to the page aft
Recently, the course design uses the frame framework,
The result is depressing,
If you do the link in the sub-framework,
Pages linked with javascript can only be displayed in this framework,
Instead of the entire webpage,
If you use the
But Javascript is different,
After a long time,
I finally found a solution today.
You only need to link the parent framework page of the Child Framework to the target page.
Window. Top. Location
This article mainly introduces how to solve the problem when the url data volume in window. location. href is too large. For more information, see the following:
To export an excel file, you need to upload a large amount of data to the background after pressing the button. The procedure is as follows:
The Code is as follows:
Var actionUrlSetData = "***** Action! ExportDatas. action "+ "? Now = "+ new Dat
SpringMVC framework uses window. location. href in js to request url. The IE incompatibility problem is solved.
When using the springMVC framework, you sometimes need to use window. location. href in js to request a url, such as the following path:
Window. location.
The two methods are used to refresh the parent window, but there are still some mysteries.
Window. opener. location. reload (); when this method forces the parent window, a confirmation dialog box is displayed in some ie browsers (such as high security settings, it prompts if you want to refresh the page again. This is a depressing thing. I later replaced this method with window. opener. location.
Window. location. href is a jump function in js. However, we found in ie6 that window. location. href cannot be redirected. The following describes the causes and solutions.
The problem code is as follows:
The Code is as follows:
Copy code
The correct code is as follows:
The Co
After clicking on the A tab in the page, to jump to the corresponding place in the page, the method is simple, that is, the contents of the href in the a tag and the ID you want to jump to this area are the same, for example:ahref= "#ppp" target= "_blank ">Jumpa>P>P1P>BR/>BR/>BR/>P>P1P>BR/>BR/>BR/>P>P1P>BR/>BR/>BR/>P>P1P>BR/>BR/>BR/>P>P1P>BR/>BR/>BR/>P>P1P>BR/>BR/>BR/>P>P1P>BR/>BR/>BR/>P>P1P>BR/>BR/>BR/>PID= "PPP" name= "Pop" class= "Opo">PppP>BR/>BR/
In this way, if someone saves my webpage or uses iframe to include it, then the page will jump directly to my article page. The test was successful in the past, today, I saw a website that included my page. I think my homepage has nothing to do with iframe, but after clicking the inner page, I found that my website has not been accessed, the error message "no access permission" is displayed when you check the javascript error message. The problem persists after the local test. It seems that the
Write ASP. net program, we often encounter page Jump problems, we often use Response. redirect: if the customer wants to use the prompt during the jump, this will not work, for example:Response. Write (" ");Response. Redirect ("main.html ");At this time, our prompt content will jump without coming out, and there is no difference with Response. Redirect ("main.html.Then we use the following code to test:Response. Write (" ");Response. Write (" ");This allows us to jump to the page after the promp
You cannot change document. location (because this is the location of the currently displayed document ). However, you can change window. location (Replace the current document with other documents) window.
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.