this is probably very basic but it would be helpful to know how it is done. I know how to pass a form objewct to a function on the Same page but can you send it to one on another page.
I know how to pass things from the window.opener to the popup or from the popup to the window opener.
In this example I am not exactly passing things but retrieving items in the popup from the window.opener.
this is test.htm:
<script>
var newWin = window.open('pop.htm',null)
function startFunctionInPopup() {
newWin.otherWinFunction();
}
</script>
<input type=button id=btn name="hey this is the name of the window opener button" value="click" onclick="startFunctionInPopup();">
This is pop.htm:
<script>
function otherWinFunction() {
alert(window.opener.document.getElementById('btn').name)
}
</script>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.