#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Location
    St.JOhn's, Newfoundland, Canada
    Posts
    7
    Rep Power
    0
    I have the code below on a page, but the problem is that I have it is frames, and the menu is based in a small frame, and what I would like is to have the selected page on a new entire page without frames, is this possible, if so please tell me how. the code that I have is as follows:

    <script language="javascript">
    <!-- Hide script from old browsers

    function jumpPage(newLoc) {
    newPage = newLoc.options[newLoc.selectedIndex].value

    if (newPage !="_top"){
    window.location.href = newPage
    }
    }

    // End hiding script -->
    </script>


    <DIV ALIGN=center>
    <FORM ACTION=gotoLocation.cgi" METHOD=GET>
    <SELECT NAME="newLocation" onChange="jumpPage(this.form.newLocation)">
    <option value="" SELECTED>DocNetworks Website
    <option value="">- Resident/Medical Students --
    <option value="boards.htm">Preparing for the Boards
    <option value="/web/home/docchat/default.asp">The Lounge
    <option value="refer.htm">Let Us Refer Patients
    <option value="technology.htm">Technology Today
    <option value="myoffice.htm">My Office
    <option value="freeaccess.htm">Free Medline & Pubmed
    <option value="samples.htm">Free Product Samples
    <option value="alumninet.htm">Alumni Networks
    </SELECT>
    <NOSCRIPT>
    <INPUT TYPE=SUBMIT VALUE="Go There">
    </NOSCRIPT>
    </FORM>
    </DIV>
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 1999
    Location
    Helden,Limburg,The Netherlands
    Posts
    33
    Rep Power
    15
    A solution could be:

    parent.location.href="newpage.html";

    With this line of code the frameset will be replaced by newpage.



    ------------------
    Ramon Litjens
    Boradoli Web Design
    (www.boradoli.nl)
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Location
    St.JOhn's, Newfoundland, Canada
    Posts
    7
    Rep Power
    0
    Ok that works, but how do I set it up so that each page on the list would open, bexcause right now only the newpage.htm opens, do I have to have one of these lines for each page.

    thanks
    Tim

IMN logo majestic logo threadwatch logo seochat tools logo