按鈕超級串連
<input type="button" name="Submit" onclick="location.href='#'" value="按鈕" />
<input type="button" name="Submit" onclick="location.href='http://downs.lxun.com'" value="按鈕" />
<input type="radio" onclick="window.open('/getball/ssqzn.html','','');" id="type" name="type" value="0" >
<input type="radio" onclick="window.open('/getball/ssqjx.html','','');" id="type" name="type" value="1" >
<input type="radio" onClick="javascript:ChangeType();" id="type" name="type" value="2" checked >
<a href="javascript :history.back(-1)">返回上一頁</a>
或
<a href="javascript :;" onClick="javascript :history.back(-1);">返回上一頁</a>
如果是用按鈕做的話就是:
<input type="button" name="Submit" onclick="javascript:history.back(-1);" value="返回上一頁">
用圖片做的話就是:
<img src="圖片路徑" border="0" onclick="javascript:history.back(-1);" title="返回上一頁">
<%
' 彈出對話方塊
'*******************************************************************
Sub alert(message)
message = replace(message,"'","\'")
Response.Write ("<script>alert('" & message & "')</script>")
End Sub
'*******************************************************************
' 返回上一頁,一般用在判斷資訊提交是否完全之後
'*******************************************************************
Sub GoBack()
Response.write ("<script>history.go(-1)</script>")
End Sub
'*******************************************************************
' 重新導向另外的串連
'*******************************************************************
Sub Go(url)
Response.write ("<script>location.href('" & url & "')</script>")
End Sub
指定秒數重新導向另外的串連
'*******************************************************************
sub GoPage(url,s)
s=s*1000
Response.Write "<SCRIPT LANGUAGE=JavaScript>"
Response.Write "window.setTimeout("&chr(34)&"window.navigate('"&url&"')"&chr(34)&","&s&")"
Response.Write "</script>"
end sub
alert("你好,請重新登陸!")
%>