posted 24 years ago
How can I access JavaScript variables in a JSP page?
eg:
<script type="text/javascript">
var name = prompt("Please enter your name","")
if (name != null && name != "")
{
document.write("Hello " + name)
}
</script>
is there any way that i can use variable "name" in the same JSP page...
<% some code here goes which needs the "var name" of java script %>
thanks in advance
br