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:
win=window.open(cnfpage,cnfname,settings);
I would like the popup window to look like this:
<body background="Graphics/bg-website.gif">
<div id="customConfirmBox">
<center><p>
<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>
</div>
</body>
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.