135
rated 0 times
[
139]
[
4]
/ answers: 1 / hits: 33438
/ 11 Years ago, wed, august 21, 2013, 12:00:00
I'm trying to call a function and activate an alert through it in my JSP.
This is what i've done so far:
<html>
<head>
<script type=text/javascript>
<meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1>
function myFunction( test )
{
alert( test );
}
</script>
<title>Success</title>
</head>
<body>
<c:set var=test scope=request value=${requestScope.userDetails }></c:set>
<input type=button id=sample_button onclick=myFunction(${test.userName}) value=test>
</body>
</html>
What is wrong with my code?
More From » html