69 users online (0 members and 69 guests)  


  Results 1 to 6 of 6

Related

  1. Open url in new tab/window, Facebook tab    Forum: General Discussion
    Replies: 0
  2. xhtml open in new window ?    Forum: HTML Forum
    Replies: 1
  3. links open in new window    Forum: HTML Forum
    Replies: 8
  4. window.open not ever working...    Forum: Javascript Forum
    Replies: 2
  5. Open New Window from Menu    Forum: Javascript Forum
    Replies: 6
  1. #1
    mmenke's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4

    Question open without new window

    Hi all,

    nice forum, lots of usefull info in here... Got a Q though that I can`t seem to find the answer on yet... I want to have a HTM load another HTM in a different frame on loading. No problems so far, right page loading in right frame on load of original HTM.
    I just can`t seem to find a way to do this without also lauching a new browser window...
    If anyone has any ideas it would be great,

    to make things clear, using this script now:
    ___________________________________
    <head>
    <script>
    open('red.htm','top');
    </script>
    </head>
    <body bgcolor="#0000FF" text="#FFFFFF" link="#FFFFFF" onload="open()">
    ____________________________________
    Also tried it with "window.open" but has exactly the same result...

    Cheers,

    Marten

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Try using

    location.href="yourpage.htm"

    instead.

    If its a different frame, you will have to post some more code (or a link) so we can have a beter look.

    BTW - welcome to the forums!
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    mmenke's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4

    hmmm...

    Thanx dean,

    location.href is not loading the second page, or I inserted it wrong or soemthing . Put back the original, can check it on "removed... rated to high by google, sorry" button "who", js is in the blue page, page that is loaded in target is the red one. As you can see it`s working, but just wanna get rid of that xtra browser window popping up...

    Hope you can help...

    Marten
    Last edited by mmenke; 10-09-2002 at 04:30 AM.

  4. #4
    mmenke's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4

    forgot

    ohhh. and thanx for the welcome

  5. #5
    mmenke's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2002
    Posts
    4

    found it

    Hi Dean,

    thanx for your help, found the answer though and thought it was nice to let you know... script that is doing the work is:

    <script>
    parent.pagetop.location.href="red.htm"
    </script>
    </head>
    <body bgcolor="#0000FF" text="#FFFFFF" link="#FFFFFF" onload="parent.pagetop.location.href">

    First created some probs cause the target was named "top" and script thought it had to use the top frameset, renameing the target into "pagetop" made it work...
    More explanation can be found on http://developer.irt.org/script/18.htm

    Later,

    Marten

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Thats quite a nice script. Glad you got it working!

    And thanks for letting us know.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread