Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 138192

form onload is not working. I need form load event to work so that I can fill data in text boxes within form

$
0
0

I searched and found that suggestion contains use . that won't work in my case.

<html>
 <head>
 </head>
 <body>
  <script>
   function datafill(){
    document.getElementById("text1").value="choco";
   }
  </script>
  <form onload="datafill()">
   <input type="text" id="text1">
  </form>
 </body>
</html>

Viewing all articles
Browse latest Browse all 138192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>