爲什麼不能在Safari中工作?window.location.href在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>
+1這就是它。 – karim79 2010-11-18 02:16:37