Web Analytics Made Easy -
StatCounter List menu - open page in another frame (onchange) - CodingForum

Announcement

Collapse
No announcement yet.

List menu - open page in another frame (onchange)

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

  • List menu - open page in another frame (onchange)

    Hi!

    I'm currently using
    Code:
    OnChange="location = this.options[this.selectedIndex].value;"
    to open a page when the selection of a list menu changes.

    What I would need is to open a page in a frame that I specify. Is that possible and how?

    Thanks,
    Bostjan

  • #2
    parent.frames[0].location.href = url;
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

    Comment


    • #3
      or:

      onchange="window.open(this.options[this.selectedIndex].value, 'nameOfTargetFrame')"
      Last edited by glenngv; Feb 22, 2004, 10:55 PM.
      Glenn
      vBulletin Mods That Rock!

      Comment


      • #4
        Originally posted by glenngv
        or:

        onchange="window.open(this.options[this.selectedIndex].value, 'nameOfTargetFrame')"
        Thanks

        Comment

        Working...
        X