|
|||||||
| JavaScript JavaScript (not Java) Discussion and technical support, including AJAX and frameworks (JQuery, MooTools, Prototype...) |
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
I want to open the web site in a new window upon changing the selections.
Below is the code: <HTML> <BODY> <form action="url" name="language" onsubmit="document.location.href=document.language.url[ document.language.url.selectedIndex].value"> <select style="font-family:Arial;font-size:8pt;" name="url" size="1" onchange="document.location.href=document.language.url[document.language.url.selectedIndex].value"> <option value="">Select a site</option> <option value="http://www.msn.com">MSN <option value="http://www.yahoo.com">Yahoo</option> <option value="http://www.cnn.com">CNN</option> </select> </form> </BODY> </HTML> |
|
#2
|
|||
|
|||
|
You need to use "window.open(url, 'name')"
Code:
Change: onsubmit="document.location.href to: onsubmit="window.open(YourNewURLhere, 'temp').... |
|
#3
|
|||
|
|||
|
It worked, thanks, Phil
thank you for your help.
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|