dropdown and popup

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • _help_

    dropdown and popup


    hello,

    Here is my code and it works fine
    The problem is that i don't want that the new page (page1.htm or page2.htm
    or ...) opens as a new page
    I want that page1.htm (or ...) opens in a popup
    What must i change ?

    ----------
    <form method="post" name="MyFrmName " action="xxxxx.a sp">
    <select name="MyChoice" size="1" class="keuzevak 1">
    <option value="---"> </option>
    <option value="Room 1" id="page1.htm"> Room 1</option>
    <option value="Room 2" id="page2.htm"> Room 2</option>
    <option value="Room 3" id="page3.htm"> Room 3</option>
    .........
    <INPUT type="button" name="go" value="Go"
    onClick="window .location=docum ent.MyFrmName.M yChoice.options[document.MyFrmN ame.MyChoice.se lectedIndex].id">
    ........
    </form>
    ----------

    thanks


  • Mick White

    #2
    Re: dropdown and popup

    _help_ wrote:
    [color=blue]
    > hello,
    >
    > Here is my code and it works fine
    > The problem is that i don't want that the new page (page1.htm or page2.htm
    > or ...) opens as a new page
    > I want that page1.htm (or ...) opens in a popup
    > What must i change ?
    >
    > ----------
    > <form method="post" name="MyFrmName " action="xxxxx.a sp">
    > <select name="MyChoice" size="1" class="keuzevak 1">
    > <option value="---"> </option>
    > <option value="Room 1" id="page1.htm"> Room 1</option>
    > <option value="Room 2" id="page2.htm"> Room 2</option>
    > <option value="Room 3" id="page3.htm"> Room 3</option>
    > ........
    > <INPUT type="button" name="go" value="Go"
    > onClick="window .location=docum ent.MyFrmName.M yChoice.options[document.MyFrmN ame.MyChoice.se lectedIndex].id">
    > .......
    > </form>
    > ----------[/color]

    <INPUT type="button" name="go" value="Go"
    onClick="if(si= this.form.MyCho ice.selectedInd ex){w=window.op en(this.form.My Choice[si].id)}
    ">


    Mick

    Comment

    Working...