Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html xmlns = "http://www.w3.org/1999/xhtml">
- <head>
- <title>Using the do...while Repetition Statement</title>
- <script type = "text/javascript">
- <!--
- var counter = 1;
- do {
- document.writeln( "<h" + counter + ">This is " +
- "an h" + counter + " level head" + "</h" +
- counter + ">" );
- ++counter;
- } while ( counter <= 6 );
- // -->
- </script>
- </head><body></body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement