Expand|Select|Wrap|Line Numbers
- <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>
nothing happens when i type into the text box..