I face a curious problem with redirection...
Look at this small example: it works only if I add the alert() call after the redirection sentence! If I remove the alert() it does not work anymore!!!
Any idea why (I'm using Firefox 3)?
Thanks.
<html>
<script type="text/javascript">
function GotoPage() {
location.href = "http://www.yahoo.com";
// Without this alert redirection does not work!!!
alert("Hello!");
}
</script>
<body>
<form>
<button onclick="javascript:GotoPage()">Go</button>
</form>
</body>
</html>