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
  1. #1
    New to the CF scene
    Join Date
    May 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to make this function go to a frame?

    Hi,

    I tried and tried, but can't get this function to go to a frame...

    function jmp(formName,elementNum) {
    getFormNum(formName);
    if (formNum>=0) {
    with (document.forms[formNum].elements[elementNum]) {
    i=selectedIndex;
    if (i>=0) location=options[i].value;
    }
    }
    }

    Any help would be VERY appreciated : )))

    Mike

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    document.frames['FRAMENAME'].location

  • #3
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    top.frames['FRAMENAME'].location.href=options[ i ].value;

    or

    window.open(options[ i ].value, 'FRAMENAME');
    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
    •