javascript 页面跳转方法集合



javascript 页面跳转方法集合

<html> 
<head> 
<script language=”javascript”><!– 
function old_page() 
window.location = “http://www.jb51.net” 
function replace() 
window.location.replace(“http://www.jb51.net”) 
function new_page() 
window.open(“http://www.jb51.net”) 
// –></script> 
</head> 
<body> 
<input type=”button” onclick=”new_page()” value=”new_page”/> 
 
<input type=”button” onclick=”old_page()” value=”old_page”/> 
 
<input type=”button” onclick=”replace()” value=”replace”/> 
</body>