Use JavaScript to fill a form on another page and pass value via URL - Javascript DOM HTML Element

Javascript examples for DOM HTML Element:Form

Description

Use JavaScript to fill a form on another page and pass value via URL

Demo Code

ResultView the demo in separate window

<html>
   <body> 
      <div>
          Redirecting... /*from www. j  a  va  2s. co m*/
      </div> 
      <script>
         setTimeout(function(){
             window.location = "./form.html#form/title=YourTitleValue&form/text=FromJavascript";
         }, 1000);
     
      </script>  
   </body>
</html>

Related Tutorials