Javascript: Get Value in one page and post the result in another page!
<p>I want get 1st Value in one page and 2 value in another page then post the result in a field.</p>

<pre><code> function KeyCheck(mathcaptcha){
if(mathcaptcha.keyCode==39){
    if(document.getElementById('prizedetailsPage')) {
        var one = prompt ("1st Value");
        }
        localStorage.setItem('ans', one);
if(document.getElementById('shipping')) {
    document.getElementById("users_ans").value = localStorage.getItem('ans');
}

window.addEventListener('keydown',KeyCheck,true);
</code></pre>

<p>As there is a Math Captcha, I want to write 1st value in the page that it'math captcha s on it :</p>

<pre><code>&lt;body id="prizedetailsPage"&gt;                              
&lt;  alt="Maths Captcha" style="display: block;" src="maths_problem_image.php" id="maths_problem" name="maths_problem"&gt;
&lt;/body&gt;
</code></pre>

<p>And when you need to go another page to write the result, so I want 2nd Value in this page, and write the result in the field :</p>

<pre><code>&lt;label id="lbMP"&gt;ANSWER MATHS PROBLEM&lt;span class="mandatory"&gt;*&lt;/span&gt;&lt;/label&gt;
</code></pre>

<p>Here is it one website shows you how this is working : tutudragon3.info</p>

<p>The 2 pages are : 3x2nlo.php and shipping.php</p>

<p>So with this code, I can write for example 5 ( as a 1st Value ) in detail page where I can see the math captcha, and in shipping page 4 ( as a 2nd Value ) and put the result in ans field.</p>

<p>And also is there anyway to put the math captcha on shipping page and how ?</p>

<p>P.S : I'm using Greasemonkey for that.</p>

<p>Thanks a lot!</p>
