|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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) |
|
#3
|
|||
|
|||
|
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 |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Select and Go menu Help Please |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|