<html>
<head>
<script type="text/javascript">
var flag=0;
callf()
{
if(flag == 0)
{
test()
{
alert("hi from if");
}
}
else
{
alert("hi from else");
}
}
</script>
</head>
<body>
<input type="text" onchange="callf();">
</body>
</html>
what's wrong with this code ??
nothing happens when i type into the text box..