windows.location works fine in FF. But It fails though in IE6. I tried many variations window.location, window.location.href ,window.location.href.assign ,document.location,document.location.href but nothing worked out.
After few hours of googling I found the solution. we need to add the following line to get it worked in IE 6 .
if(window.event ) {//IE 6
window.event.returnValue = false;
window.location = "http://www.google.com";
return false;
}else {//firefox
window.location = "http://www.google.com";
}
After few hours of googling I found the solution. we need to add the following line to get it worked in IE 6 .
if(window.event ) {//IE 6
window.event.returnValue = false;
window.location = "http://www.google.com";
return false;
}else {//firefox
window.location = "http://www.google.com";
}