V
vunet.us
Why does IE6 ignores JavaScript's return false on a link and how to
fix it? Firefox works perfect!
<a href="page1.html" onclick="return test(this)">Test</a>
JS:
function test(obj)
{
if(obj.href=='page1.html'){
doSomething();
return false;
}else{
return true;
}
}
fix it? Firefox works perfect!
<a href="page1.html" onclick="return test(this)">Test</a>
JS:
function test(obj)
{
if(obj.href=='page1.html'){
doSomething();
return false;
}else{
return true;
}
}