Click here to Skip to main content
15,887,083 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
XML
<b></b>&lt;select  id="Select1" name="shortcut" class="sl"; style="margin-left:10px">
   &lt;option>&lt;/option>
     &lt;option onclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">Belarusian&lt;/option>
     &lt;option onclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">Bulgarian&lt;/option>
     &lt;option onclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">German&lt;/option>
     &lt;option onclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">English&lt;/option>


It will executed correctly in mozzila forefox.

but internet explorer it will show the error msg of invalid argument...

plz help me to solve this..
Posted
Comments
Mario Majčica 14-May-12 3:43am    
What is the question?

1 solution

Use Window.Open[^] method to achieve it.

On option click, call this window.open client side using Javascript. If needed, look here for other events exposed: HTML <option> Tag[^]

Sample:
HTML
<option onclick="OpenWindowJavaScriptMethod()">Some Option</option>

In JS, define this method and open the window having a desired URL.

Try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900