Search DaTutorials:  
HOME
VB Script Tutorials
Introduction
Reference
Tutorials

A Simple Loop

Description:


How to use the looping functionality.

Code:


<html>
<body>
<head>
<script type="text/vbscript">

function Looping()
  i = 1
  while (i <= 10)
  
   document.write("Looping " & i & " times")
   document.write("< br>")
   i = i + 1
  wend
end function
</script> </head> <body> <p> <script type="text/vbscript"> Looping() </script> </p> </body> </html>

See working example:


Keywords:

VBScript: function, while

DHTML: document.write


     Life Insurance | Loans | Xecuter 3 Mod Chip | Loans | Remortgaging
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp