#1
  1. No Profile Picture
    hapsberg
    Guest
    Devshed Newbie (0 - 499 posts)
    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. #2
  3. No Profile Picture
    christine
    Guest
    Devshed Newbie (0 - 499 posts)
    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>
  4. #3
  5. No Profile Picture
    Rory
    Guest
    Devshed Newbie (0 - 499 posts)

IMN logo majestic logo threadwatch logo seochat tools logo