<!DOCTYPE html> <html> <head> <script type="text/javascript"> var i=1; while(i<6) { document.write("<br>",i); i++; }; </script> </head> </html>