www.webdeveloper.com
Results 1 to 2 of 2

Thread: Please help!!! /monica

  1. #1
    Join Date
    Mar 2005
    Posts
    2

    Please help!!! /monica

    ok, hereŽs the deal, IŽam creating a webpage. Ihave three frames, "top" "middle" "bottom". I have a dropdown menu at "top". The thing is this. These links will only open in "rmain" (the middle frame), but want I would want is that when you click on a link you could change both "middle" and "bottom" at the same time, or only change one frame. This is my Menu.

    Please help me! /Monica

    <select name="select" onChange="parent.rmain.location.href=this.options[this.selectedIndex].value">
    <option value="rvanster.html">Menu
    <option value="me.html">hi
    <option value="fact.html">fact
    <option value="rcontact.html">Contact </select>

  2. #2
    Join Date
    Dec 2002
    Location
    Calgary, Canada
    Posts
    6,136
    the answer is in your code already.
    look at this line
    parent.rmain.location.href=this.options[this.selectedIndex].value
    see you are telling the browser to change the location of loaded page for rmain frame. just like thisadd another line like that and point to any other frame where you want location to be changed, something like this

    parent.mainFram.location.href=this.options[this.selectedIndex].value
    parent.topFrame.location.href=this.options[this.selectedIndex].value
    Cheers

    Khalid

    Message Posting Guidelines In These Forums, Please read these before posting any question.
    Web site: webapplikations.com
    Web Resources Page:Web Resources

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles