Why won't this work in Safari?
<script language="javascript" type="text/javascript">
function changeUrl(url) {
window.location.href='http://google.com';
return false;
}
</script>
<form action="#" onsubmit="changeUrl(this)" />
<input type="Submit" value="Go" />
</form>
See Question&Answers more detail:os