Home > front end >  Why don't the onclick asp jump?
Why don't the onclick asp jump?

Time:12-12

<% @ LANGUAGE="JAVASCRIPT" CODEPAGE="65001" % & gt;

<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;
No title documents & lt;/title> <br/></head> <br/><br/><body> <br/><The form id="form1" name="form1" method="post" action="" & gt; <br/><p> <br/><Input type="checkbox" name="checkbox" id="checkbox" value="https://bbs.csdn.net/topics/lanqiu"/& gt; <br/>Basketball <br/><Input type="checkbox" name="checkbox" id="checkbox2" value="https://bbs.csdn.net/topics/zuqiu"/& gt; <br/>Football & lt;/p> <br/><p> <br/><Input type="submit" name="button" id="button" value="HTTP://https://bbs.csdn.net/topics/shopping" onclick="b.a sp/& gt;" <br/></p> <br/></form> <br/></body> <br/></html><p class="article - content rp"> CodePudding user response: </p>You this is not a hyperlink <br/><A href="https://bbs.csdn.net/topics/b.asp" & gt; <br/><Input type="submit" name="button" id="button" value="https://bbs.csdn.net/topics/" shopping/& gt; <br/></a> <br/><br/>Or <br/><br/><Input type="submit" name="button" id="button" value="HTTP://https://bbs.csdn.net/topics/shopping" onclick="pay ()"/& gt; <br/><br/>The function pay () {<br/>The location. The href='https://bbs.csdn.net/topics/b.asp' <br/>}<p class="article - content rp"> CodePudding user response: </p><fieldset> <legend> reference 1st floor jio can reply: <legend> <blockquote> you that this is not a hyperlink <br/><A href="https://bbs.csdn.net/topics/b.asp" & gt; <br/><Input type="submit" name="button" id="button" value="https://bbs.csdn.net/topics/" shopping/& gt; <br/></a> <br/><br/>Or <br/><br/><Input type="submit" name="button" id="button" value="HTTP://https://bbs.csdn.net/topics/shopping" onclick="pay ()"/& gt; <br/><br/>The function pay () {<br/>The location. The href='https://bbs.csdn.net/topics/b.asp' <br/>} </blockquote> <fieldset> <br/><br/>Thank you very much! Has been solved! <br/>Also want to ask, why is this code output only a? <br/><% <br/>A=Request Form (" a "); <br/>Response. Write (a); <br/>B=Request Form (" b "); <br/>Response. Write (b); <br/>C=Request Form (" c "); <br/>Response. Write (c); <br/>D=Request Form (" d "); <br/>Response. Write (d); <br/>E=Request Form (" e "); <br/>Response. Write (e); <br/>F=Request Form (" f "); <br/>Response. Write (f); <br/>G=the Request Form (" g "); <br/>Response. Write (g); <br/>H=the Request Form (" h "); <br/>Response. Write (h); <br/>% & gt;<p class="article - content rp"> CodePudding user response: </p>You put the <br/>A=Request Form (" a "); <br/>Response. Write (a); <br/>Delete, see if B can show that if you can, that value is normal, is to show the problems <br/>Can put a=Request Form (" a "); B=Request Form (" b "); . All written above, write according to the statement below and see, step by step<p class="article - content rp"> CodePudding user response: </p>According to my you do a simple test to try <br/><% @ LANGUAGE="VBSCRIPT" CODEPAGE="65001" % & gt; <br/><! PUBLIC DOCTYPE HTML "-////W3C DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" & gt; <br/><HTML XMLNS="http://www.w3.org/1999/xhtml" & gt; <br/><head> <br/><! - page use utf-8 or easy garbled - & gt; <br/><title> Test
<link rel="shortcut icon" href="https://bbs.csdn.net/topics/images/favicon.ico"/& gt;
<meta HTTP - equiv="content-type" Content="text/HTML. Charset=utf-8 "/& gt;


<body>













<script language="javascript" & gt;
{

The function Test_demo_jsShow ()
{
Alert (" you point/DEMO button test ");
}

}
</script>
======================================================
Mention:
You will be my the code above is saved as a index. Asp, and then look in IIS running effect

This is to click on the button function, perform JS statements and pop up a dialog
  •  Tags:  
  • ASP
  • Related