Results 1 to 4 of 4

Thread: Child windows

  1. #1
    Question
    Guest

    Child windows

    I have asked this before on the FP2k board, and to date have still failed to realise my ambition of providing a link to a page within a new window, which subsequently opens all further links into that same window. I am trying to avoid the situation where I have provided some poor devil 5 new instances of their respective browser windows. I was last recommended to some Javascript sites which I were amazing and found some amazing toys and gimmicks but no solution. Are there any example of code that I could 'borrow' ? I also can't find a common link between the various pages that have succeeded in doing this. Cheers

  2. #2
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles, California, USA
    Posts
    1,734
    Thanks
    0
    Thanked 3 Times in 1 Post

    Re: Child windows

    Do you mean something like our Help system? (Try clicking <font color=red>HELP</font color=red> in the menubar up top.)
    <IMG SRC=http://www.wopr.com/w3tuserpics/Eileen_sig.gif>

  3. #3
    Question
    Guest

    Re: Child windows

    Yep thanks, but the problem i am having is that I'll have 3 links or so and I want them all to open within the same window in succession instead of opening new windows. Will I have to assign a name to the new window and then use the name as a target destination for my links (if so how do I assign a name to a child window?)

  4. #4
    Silver Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles, California, USA
    Posts
    1,734
    Thanks
    0
    Thanked 3 Times in 1 Post

    Re: Child windows

    Yes. If you look at the function the Help system uses:

    function scrollThis(url,w,h) {
    bang = open("http://www.wopr.com/w3thelp/" + url + ".html","scrollHelp","scrollbars,resizable,top=20, left=20,width=" + w + ",height=" + h);
    bang.creator = window
    }

    "bang" is the new window and you tell it what to put in there when you call it:

    <font color=red>HELP</font>
    <IMG SRC=http://www.wopr.com/w3tuserpics/Eileen_sig.gif>

Posting Permissions

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