Solution for invalid iis c # EPT: void (0) in IE6
This article mainly introduces the solution to the invalid issue of javasc # EPT: void (0) in IE6. If you need a friend, you can refer to it and hope to help you.
In IE 6, JSP links:
<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 does not respond in IE6.
The reason is: void (0) is a computation expression, and the result of returning 0 does not respond to the page;
The default event of a is also triggered after The onClick event: void (0)
Solution: Add return false;
<A href = "javascript: void (0);" target = "mainFrame" onClick = "btnHome_onClick (); return false;"> Home </a>