Create a dynamic webpage using HTML to print the numbers from 1 to 10 as soon as button is clicked?

Posted by Tripati_tutu under JavaScript category on | Points: 40 | Views : 3081
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">
<script language="javascript" type ="text/javascript" >
function f1()
document.write (i +" ")
<form action ="">
<input type="button" name= "b1" value="Display" onclick="f1()" />

Comments or Responses

Login to post response