T
TH
Hi there
What's the best way for a popup to cause an event to fire in the
opener? I've got a popup which currently returns a value to the opener
by setting a hidden input in the opener:
window.opener.document.forms[0].myHiddenField.value=returnValue;
window.close();
I then want the opener window to perform some work on the returned
value. The best I've come up with so far is to put a button on the
opener page, try to hide it with css, give it an onclick value which
calls the function I want to run, then have the popup click it:
window.opener.document.forms[0].myHiddenField.value=returnValue;
window.opener.document.forms[0].myHiddenButton.click();
window.close();
Is there any less clunky method than using an invisible button like
this?
Thanks, TH.
What's the best way for a popup to cause an event to fire in the
opener? I've got a popup which currently returns a value to the opener
by setting a hidden input in the opener:
window.opener.document.forms[0].myHiddenField.value=returnValue;
window.close();
I then want the opener window to perform some work on the returned
value. The best I've come up with so far is to put a button on the
opener page, try to hide it with css, give it an onclick value which
calls the function I want to run, then have the popup click it:
window.opener.document.forms[0].myHiddenField.value=returnValue;
window.opener.document.forms[0].myHiddenButton.click();
window.close();
Is there any less clunky method than using an invisible button like
this?
Thanks, TH.