第一種:
<script language="javascript" type="text/javascript">
window.location.href="http://www.dollare.com.cn/login.php?backurl="+window.location.href;
</script>
第二種:
<script language="javascript">
alert("傳回");
window.history.back(-1);
</script>
第三種:
<script language="javascript">
window.navigate("dollare.php");
</script>
第四種:
<script language="JavaScript">
self.location='dollare.htm';
第五種:
alert("非法通路!");
top.location='dollare.html;
1.在原來的窗體中直接跳轉用
window.location.href="你所要跳轉的頁面";
2、在新窗體中打開頁面用:
window.open('你所要跳轉的頁面');
window.history.back(-1);傳回上一頁
3、一些用法
按鈕式:
<INPUT name="pclog" type="button" value="/GO" onClick="location.href='連接配接位址'">
連結式:<a href="javascript:history.go(-1)">傳回上一頁</a>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">傳回上一頁</a>
直接跳轉式:
<script>window.location.href='連接配接位址';</script>
開新視窗:
<a href="/javascript:" onClick="window.open('http://www.dolalre.com.cn','','height=500,width=611,scrollbars=yes,status =yes')">123</a>