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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Oct 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I open a link from a pop-up in the same page at full size?

    And i want all the standard menus (toolbars) etc to be present. I'd prefer the code go in the target page, so that any time it opens it opens at full size.

    Can anyone offer any suggestions? i can only find code that doesn't include the tool bars.

    Thanks!

    Jenni.

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,074
    Thanks
    0
    Thanked 256 Times in 252 Posts
    if the popup where the link is located already has no toolbars, you can't make them show when a new page is loaded in that window. You can only resize it.
    You can put this code in the target page and call it onload:
    Code:
    function autoMax(){
        top.window.moveTo(0,0);
        if (document.all) {
             top.window.resizeTo(screen.availWidth,screen.availHeight);
        }
        else if (document.layers||document.getElementById) {
            if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
                 top.window.outerHeight = screen.availHeight;
                 top.window.outerWidth = screen.availWidth;
            }
        }
    }
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

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