I have a popup window that I need to display based on the user's responses in a form. The popup window is called by:
I would like the popup window to look like this:
<script>document.writeln("There will be a " + rate + "% surcharge for using PayPal (Total charge = $" + final + ").<p>Please click the Accept button to authorize this charge.<p>Otherwise click the Decline button.<p>")</script>
<p><input type="button" onclick="answer(true)" value="Accept">
<input type="button" onclick="answer(false)" value="Decline"></p>
The values of rate and final are calculated in a function in the parent window. How do I pass the values to the popup window?
Also, I will need to pass which button is clicked back to the parent.
Can anyone help me with this please.