JavaScript code 1

Source: Internet
Author: User

Button super connection

 

<Input type = "button" name = "Submit" onclick = "location. href = '#'" value = "button"/>

<Input type = "button" name = "Submit" onclick = "location. href = 'HTTP: // downs.lxun.com '" value = "button"/>

 

 

<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)"> return to the previous page </a>
Or
<A href = "javascript:;" onclick = "javascript: history. Back (-1);"> back to previous page </a>

If a button is used:
<Input type = "button" name = "Submit" onclick = "javascript: history. Back (-1);" value = "back to previous page">

If you use images, you can:

<%
'Dialog box
'*************************************** ****************************
Sub alert (Message)
Message = Replace (message ,"'","\'")
Response. Write ("<SCRIPT> alert ('" & message & "') </SCRIPT> ")
End sub

'*************************************** ****************************
'Back to the previous page, generally used after determining whether the information is completely submitted
'*************************************** ****************************
Sub Goback ()
Response. Write ("<SCRIPT> history. Go (-1) </SCRIPT> ")
End sub

'*************************************** ****************************
'Redirect another connection
'*************************************** ****************************
Sub go (URL)
Response. Write ("<SCRIPT> location. href ('" & URL & "') </SCRIPT> ")
End sub

Specify the number of seconds to redirect another connection
'*************************************** ****************************
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 ("hello, please log in again! ")

%>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.