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 3 of 3

Thread: buttons

  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    buttons

    Hey guys,
    I was trying to set up few buttons so they will open pages in
    the frame but I stuck, I just don't know where to stick the frame
    content so it will open the page in the frame I need.
    For example this script at javascriptkit.com:
    http://javascriptkit.com/script/script2/urljump.shtml


    This will be open in the new/current window, how can I make it
    open the window in the "Main" frame.

    Thanks for any help!
    Last edited by Viktor87; 04-16-2005 at 04:37 AM. Reason: add more

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Change this line

    window.location=document.jumpurl1.jumpurl2.value


    to


    parent.frameName.location = document.jumpurl1.jumpurl2.value

    where frameName is the name of your target frame
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thanks

    Thanks for the info.


  •  

    Posting Permissions

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