Web Analytics Made Easy -
StatCounter Frames targeting problem using javascript:location.href - CodingForum

Announcement

Collapse
No announcement yet.

Frames targeting problem using javascript:location.href

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Frames targeting problem using javascript:location.href

    I am using the following code to allow users to select from a dropdown menu which alters the URL for a link intended to be displayed in a nested childframe.

    <select name="schedule"><option value="schedule.htm">2005<option value="sched04.htm">2004<option value="sched03.htm">2003
    <option value="sched02.htm">2002<option value="sched01.htm">2001<option value="sched00.htm">2000</select>
    <a href="javascriptarent.display.bottom.location.href=document.theform.schedule.options.value;"><FONT SIZE="2">Schedule</a>

    It loads the correct file in the correct subframe but it also alters the current frame simply displaying the value of the selected item with a white background? I want the current frame to remain static of course.

    Ideas?

  • #2
    Code:
    <a href="#" onclick="window.open(document.theform.schedule.options[document.theform.schedule.selectedIndex].value, 'bottom'); [B]return false;[/B]">Schedule</a>
    Glenn
    vBulletin Mods That Rock!

    Comment

    Working...
    X