I hope someone can be kind to help me with this problem.
What I'm trying to do, I return the value from the popup to the parent window that launched it using javascript.
What I tried causes (as read on different sites)
window.opener.document.forms[0].textField.value = 'value'
but while it does not cause any errors, it does not change the value of the field.
I tried to find a solution on the net for this, but where there are so many sites related to βpop up return valueβ in google, the results related to 2000, many seem to conflict with each other, so I'm a bit confused.
Ideally, I would prefer the popup to wait for a decision to be made (yes or no) and have a true or false value returned to the calling function from the parent window. As a reason for this, I want to have a form using onsubmit to call the javascript function to confirm that the weather does not continue. I used the dialog box to return the true false value, but now I'm trying to do this with a popup to include images and other information.
Hopefully I explained it well enough and someone can help me with the solution.
Thank you for your time.
source
share