...

View Full Version : How to return value from popup window?



gorselkiras
04-28-2008, 11:24 AM
Hi all!

I want to know how can i take value(s) from opened popup window?
Thanks.:thumbsup:

gorselkiras
04-28-2008, 11:26 AM
and also i want to know how can i check my popup window is opened or not?;)

mjlorbet
04-28-2008, 10:51 PM
opening the window


var yourwin = window.open("mypage.html");


inside mypage.html


<script type="text/javascript">
window.onload = function(){
window.opener.window["childWinOpen"] = true;
};
window.onunload = function(){
window.opener.window["childWinOpen"] = false;
};
</script>


again inside main page


function isChildOpen(){
return (window["childWinOpen"] != undefined)?window["childWinOpen"]:false;
}

gorselkiras
04-29-2008, 08:31 AM
thanks :thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum