J
Jack
Hello,
I wrote this code:
<SCRIPT Language=VBScript RUNAT=Server>
dim ab
ab=40
Response.Write "<INPUT type=""button"" value=""Button1"" id=button1
onclick=""ab=" & ab & "+10"">"
Response.Write "<INPUT type=""button"" value=""Button2"" id=button2
onclick=""text1.value=ab"">"
Response.Write "<INPUT type=""button"" value=""Button3"" id=button2
onclick=""text2.value=" & ab & """>"
Response.Write "<BR>"
Response.Write "<INPUT type=""text"" id=text1 name=text1 >"
Response.Write "<INPUT type=""text"" id=text2 name=text2 >"
Response.Write "<BR>"
</SCRIPT>
After Click button1,when click button2 text1 shows 50,but when click button3
text2 shows 40.
Once again click button1,the result is the same.
I want once click button1,ab be plused 10.
That is to say button1 be clicked n times,I want ab=40+10*n
Can you help me
I wrote this code:
<SCRIPT Language=VBScript RUNAT=Server>
dim ab
ab=40
Response.Write "<INPUT type=""button"" value=""Button1"" id=button1
onclick=""ab=" & ab & "+10"">"
Response.Write "<INPUT type=""button"" value=""Button2"" id=button2
onclick=""text1.value=ab"">"
Response.Write "<INPUT type=""button"" value=""Button3"" id=button2
onclick=""text2.value=" & ab & """>"
Response.Write "<BR>"
Response.Write "<INPUT type=""text"" id=text1 name=text1 >"
Response.Write "<INPUT type=""text"" id=text2 name=text2 >"
Response.Write "<BR>"
</SCRIPT>
After Click button1,when click button2 text1 shows 50,but when click button3
text2 shows 40.
Once again click button1,the result is the same.
I want once click button1,ab be plused 10.
That is to say button1 be clicked n times,I want ab=40+10*n
Can you help me