This article is mainly to IE6 under the javasc#ipt:void (0) ineffective solution is introduced, need friends can come to the reference, I hope to help you
IE 6, the link in the JSP problem:
<a href= "javascript:void (0);" target= "MainFrame" onclick= "Btnhome_onclick ()" >
<javascript>
function Btnhome_onclick () {
window.open ("Com.mcl.common.main.InitHome.flow", "mainFrame");
if (Winoperate.style.display!= "None") {
Silde_onclick ();
Sildebar.style.display= ' None ';
Winoperate.style.display= ' None ';
}
}
</javascript>
The above code, under the IE6, will not have any reaction.
The reason is: void (0) is a calculation expression, the result of returning 0 does not have any response to the page;
The OnClick event also triggers the default event for a: void (0)
Solution: Add return false;
<a href= "javascript:void (0);" target= "MainFrame" onclick= "Btnhome_onclick (); return false;" >Home</a>