/    Sign up×
Community /Pin to ProfileBookmark

drop down menu open window function instead of URL

I know how to construct a drop down menu so that selecting an option will open a new page or URL.

I have a separate function already written in javascript that works with a button called openall().

Is it possible to make an option open a javascript open window function instead of the page or URL.

I have this so far:

<form>
<select onChange=”mailing=window.open(”,’mailing’);mailing.location=this.options[this.selectedIndex].value;” style=”font-family:’Arial’;color:#000000;background-color:#FFFFFF;font-size:10pt;”>
<option selected>- Select one – </option>
<option value=”AllMail.asp” target=”top”>All</option>
<option value=”othermail.asp”>Other</option>
</select>
</form>

Would appreciate any help you can give.

Thanks,
blodefood?

to post a comment
JavaScript

5 Comments(s)

Copy linkTweet thisAlerts:
@pyroSep 23.2003 — How about:

&lt;select onchange="window.open(this.options[this.selectedIndex].value,'child','width=640,height=480, scrollbars=1');&gt;
&lt;option value="http://www.webdevfaqs.com"&gt;
&lt;option value="http://www.w3c.org"&gt;
&lt;/select&gt;
Copy linkTweet thisAlerts:
@blodefoodauthorSep 23.2003 — Doesn't work yet, but I will keep trying.

If this info is helpful, the pages I am trying to open are in the same directory as the originating page.

  • - blodefood
  • Copy linkTweet thisAlerts:
    @pyroSep 23.2003 — My mistake. I had a few error. Sorry 'bout that...

    &lt;select onchange="window.open(this.options[this.selectedIndex].value,'child','width=640,height=480, scrollbars=1');"&gt;
    &lt;option value="http://www.webdevfaqs.com"&gt;Web Dev FAQs&lt;/option&gt;
    &lt;option value="http://www.w3c.org"&gt;W3C&lt;/option&gt;
    &lt;/select&gt;
    Copy linkTweet thisAlerts:
    @blodefoodauthorSep 23.2003 — Thank you. Exactly what I needed!!!!

    ?
    Copy linkTweet thisAlerts:
    @pyroSep 23.2003 — You bet... ?
    ×

    Success!

    Help @blodefood spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.20,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...