Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: drop down menus with CGI/Perl

by Anonymous Monk
on Jun 09, 2009 at 12:40 UTC ( #769878=note: print w/ replies, xml ) Need Help??


in reply to Re: drop down menus with CGI/Perl
in thread drop down menus with CGI/Perl

Try this code :

<P>Choose your destination :<BR><BR> <select name="select" onchange="document.location.href=this.options[th +is.selectedIndex].value;"> <option value="http://google.com">optionA</option> <option value="http://yahoo.com">optionB</option> <option value="http://msn.com">optionC</option> </select>
Regds Vivek


Comment on Re^2: drop down menus with CGI/Perl
Download Code
Re^3: drop down menus with CGI/Perl
by d0353101 (Novice) on Jun 09, 2009 at 12:44 UTC
    Try This code, it is using Java Script :
    <P>Choose your destination : <BR><BR> <select name="select" onchange="document.location.href=this.options[th + +is.selectedIndex].value;"> <option value="http://google.com">optionA</option> <option value="http://yahoo.com">optionB</option> <option value="http://msn.com">optionC</option> </select>
    Regds
    Vivek

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://769878]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2015-07-04 09:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (59 votes), past polls