How do I pass the value of input fields on one html page to input fields on another html page using dojo

Posted by Amen on Stack Overflow See other posts from Stack Overflow or by Amen
Published on 2011-01-07T20:50:28Z Indexed on 2011/01/07 20:53 UTC
Read the original article Hit count: 169

Filed under:
|
|

I am trying to pass the values of input fields on one html page to another html page that has a form with input fields. How do I write the dojo or JavaScript code to accomplish this?

<form id="form1" method="post" action="form2.html">
    First Name: <input id="tFName" name="tFName" type="text" tabindex="0" iclass="isCompleted" maxlength="50" />
    <br/>
    <br/>
    Last Name: <input id="tLName" name="tFName" type="text" tabindex="0" iclass="isCompleted" maxlength="50" />
    <br/>

    <input type='submit' value='Submit'/>

    </form>

here is form 2:

<form id="form">
    First Name: <input id="tFName" name="tFName" type="text" tabindex="0" iclass="isCompleted" maxlength="50" />
    <br/>
    <br/>
    Last Name: <input id="tLName" name="tFName" type="text" tabindex="0" iclass="isCompleted" maxlength="50" />
    <br/>

    <input type='submit' value='Save Your Name'/>

    </form>

© Stack Overflow or respective owner

Related posts about html

Related posts about forms