Js page Jump, js page Jump
Page redirection in js is equivalent to redirection in jsp:
Window. location. href = "xxx. jsp ";
However, sometimes window. location. href sometimes becomes invalid. This is another bad ie bug. The following is a solution:
Microsoft released three solutions.
Address: http://support.microsoft.com/kb/190244/en-us
First:
Add window. event. returnValue = false after window. location. href;
For example:
<a href="#" onclick="window.location.href='http://www.microsoft.com';
window.event.returnValue=false;">
Second:
Write window. location. href as JavaScript: window. location. href
For example:
<a href="JavaScript:window.location.href='http://www.microsoft.com';">
Third:
If you do not write href, write onlick directly. Then, use the css style to control the mouse movement and display the hand effect.
For example:
<A onclick = "window. location. href = 'HTTP: // www.microsoft.com '; "onmouseover =" window. status = 'HTTP: // www.microsoft.com '; "onmouseout =" window. status = '';" style = "cursor: pointer; text-decoration: underline; color: blue; font-family: times new roman">
Reference: http://blog.sina.com.cn/s/blog_49ca87fc0100xvvf.html