The example in this article describes the solution to the invalid window.location.href in IE6 browser. Share it with everyone for your reference. The specific method is as follows:
Window.location.href is the jump function in js. Many people will find that window.location.href cannot jump in IE6. Let me introduce the reasons and solutions to you.
The problem code is as follows:
Summary
The principle is not that window.location.href is incompatible, but that our return false later prevents the jump.
I hope this article will be helpful to everyone’s JavaScript programming design.