Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Apr 2008
    Location
    Türkiye
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How to return value from popup window?

    Hi all!

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

  • #2
    New to the CF scene
    Join Date
    Apr 2008
    Location
    Türkiye
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    and also i want to know how can i check my popup window is opened or not?

  • #3
    Regular Coder mjlorbet's Avatar
    Join Date
    Jan 2008
    Location
    Milwaukee, WI
    Posts
    724
    Thanks
    8
    Thanked 96 Times in 95 Posts
    opening the window
    Code:
     
    var yourwin = window.open("mypage.html");
    inside mypage.html
    Code:
     
    <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
    Code:
     
    function isChildOpen(){
        return (window["childWinOpen"] != undefined)?window["childWinOpen"]:false;
    }
    -Mike
    "Want me to precludify him, like some kind of dispatcherator?... Can do!" -Bender

  • Users who have thanked mjlorbet for this post:

    gorselkiras (04-29-2008)

  • #4
    New to the CF scene
    Join Date
    Apr 2008
    Location
    Türkiye
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •