Development JavaScript DHTML


PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

  
    JavaScript while statement
    
      var iCount = 0;
      var sNewLine = "";
      document.write("While loop is starting");
      document.write(sNewLine);
      while(iCount < 10){
        document.write("iCount = " + iCount);
        document.write(sNewLine);
        iCount++;
      }
      document.write("While loop completed");