Page 328 - Web Applications (803) Class 11
P. 328

When you click on the “OK” button, with the message “This page says”. Then a new windows appears as shown below:


























              Example:
                 <html>
                 <body text="red">
                 <h2> Display numbers from 1 to 10 </h2>
                 <p style="color:blue;">
                 <script>
                 for (i = 1; i <= 10; i++) {
                 document.write(i+"<br><br>"); }
                 </script></p>
                 </body> </html>
              Output:





























              Example:
                 <HTML>
                 <BODY text="red">
                 <H2> program to accept a number and display all even numbers till that number</H2>


                326     Touchpad Web Applications-XI
   323   324   325   326   327   328   329   330   331   332   333