CODE :- <html> <head> <title>For Loop</title> <script type="text/javascript"> function check() { var no=10,i;
for(i=1;i<=no;i++) { document.write(i+"<br>"); } } </script> </head> <body> <form name="form1" method="post"> <input type="button" name="sub" value="click me" onclick="return check()"> </form> </body> |
No comments:
Post a Comment