Hi,
Take a look at this code.
Iam posting this form and trying to get the value thru a Javascript variable(vartxt). But it isn't working. How can I do this?Code:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> </HEAD> <script> var vartxt="txt"; s = "<%=request(" + vartxt + ")%>"; alert(s); </script> <BODY> <form name=f1 action="test.asp"> <input type=text name=txt value="testvalue"> <input type=submit> </form> </BODY> </HTML>
Thanks,
Pres.




Reply With Quote