|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I know how to create a banner/contents/main frame. The screen reflects three frames. This is my scenario. I want to create a form within the contents frame. The form has a list box. Once the individual clicks on an item in the list box, the request is sent to the main frame. I do not want a new page to come up when this happens. This way the individual can keep one page and view one item at a time without losing the list page. How do I proceed? Thanks for any input.
|
|
#2
|
|||
|
|||
|
URL Hope this helps. It can be used to link to different pages (page1.htm), or different locations within the same page (page1.htm#paragraph2).
<HTML> <HEAD> <BASE TARGET="frame2"> <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!--hide code from old browsers function go() { if (document.form.list.options[document.form.list.selectedIndex].value !="none") { parent.frame2.location = document.form.list.options[document.form.list.selectedIndex].value; return; } } // end hiding--> </SCRIPT> </HEAD> <BODY> <FORM NAME="form"> <SELECT NAME="list" SIZE="1" onChange="go()"> <OPTION VALUE="none">pages <OPTION VALUE="page1.htm">page1 <OPTION VALUE="page1.htm">page2 <OPTION VALUE="page1.htm">page3 <OPTION VALUE="page1.htm">page4 </SELECT> </FORM> </BODY> </HTML> |
|
#3
|
|||
|
|||
|
this site may also help:
http://cool.icestorm.net/monarkh/frametest.html - Rory http://cool.icestorm.net/monarkh/resources.html |
![]() |
| Viewing: Dev Shed Forums > Web Design > JavaScript Development > FRAMES/FORMS/JavaScript |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|