Unnamed
public text v1 · immutable<html>
<head>
<script language ="javascript">
function isInt(a)
{
alert("Hi");
var n = parseInt(a);
return(n > 0);
}
function promt(a)
{
alert("Hi ... 1");
if(isInt(a) > 0)
alert("Number.");
else
alert("NaN.");
}
</script>
</head>
<body>
<form name="f1" action="" method="get">
Type here <input type="text" name="ag"><br>
<input type="submit" value="Click" onClick="promt(ag.value)">
</form>
</body>
</html>