/    Sign up×
Community /Pin to ProfileBookmark

Need help on DRop-down menu,please

To whom it may concern,

Could someone lend some assistance on a snippet of HTML or Java.
I have found a drop-down menu in the Javascript section that is pretty much what I have been looking for. But, it opens a whole new page. Here is the URL:

[url]http://javascript.internet.com/generators/drop-down-menu.html[/url]
What I would like it to do, would be open a window on ontop of the main window, sized to about the size of an index card. I have seen this type of devise used on other sites and it would be very helpful.
I am building a new site, and I want it to be very user-friendly and interactive.
Thank you in advance for any help.

David S. R. Clark
[url]www.ElizabethStewartClark.com[/url]

to post a comment
JavaScript

3 Comments(s)

Copy linkTweet thisAlerts:
@khalidali63Jun 01.2003 — use window.open(url,windowName,"width=200,height=180");

where url = the url selected from the drop down list box.
Copy linkTweet thisAlerts:
@D_S_R_ClarkauthorJun 01.2003 — Thank you for your post.

Based on the script written, where does this piece go, please?


<!-- ONE STEP TO INSTALL PULLDOWN MENU:

  • 1. Paste the code into the BODY of your HTML document -->


  • <!-- STEP ONE: Copy this code into the BODY of your HTML document -->

    <BODY>

    <!-- Original: Ricocheting ([email protected]) -->

    <!-- Web Site: http://free.prohosting.com/~ric -->

    <!-- This script and many more are available free online at -->

    <!-- The JavaScript Source!! http://javascript.internet.com -->

    <form name="jump">

    <select name="menu">

    <option value="http://www.somewhere.com">Something, something......</option>

    </select>

    <input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

    </form>


    Thank you,

    David S. R. Clark

    www.ElizabethStewartClark.com
    Copy linkTweet thisAlerts:
    @khalidali63Jun 01.2003 — in here

    <input type="button" onClick="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">

    the above should look like something like this

    <input type="button" onClick="window.open(document.jump.menu.options[document.jump.menu.selectedIndex].value,'winName','width=200,height=200');" value="GO">
    ×

    Success!

    Help @D_S_R_Clark 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.18,
    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,
    )...