Thursday 30 June 2011

How can we submit a form without a submit button?


<html>
<body bgcolor="cornsilk" text= "greeen">
 <h1>abc</h1>
</html>

//then//


 <html>
<body>
<input type="button" name="btn" value= "Show me"onClick="xyz()">
 </body>
<script language= "javascript">
 function xyz()
  { document:location= "abc.html";
  }
  </script>
  </html>

No comments:

Post a Comment