Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HTML
<select  id="Select1" name="shortcut" class="sl"; style="margin-left:10px">
      <option></option>
        <option  önclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">Belarusian</option>
        <option  önclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">Bulgarian</option>
        <option  önclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">German</option>
        <option  önclick="window.open('multi_language.htm','Multi Language','width=500,height=400,left=250,top=100,screenX=100,screenY=100')">English</option>
    </select>



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
Updated 13-May-12 21:20pm
v2

1 solution

The actual problem was an invalid name for the second argument. As an example, if you have a line like:

HTML
window.open('/somefile.html', 'a window title', 'width=300');


The problem was 'a window title' as it is not valid. It worked fine with the following line:

HTML
window.open('/somefile.html', '', 'width=300');


In fact, Microsoft does not support a name as second argument. When you look at the official documentation page at http://msdn.microsoft.com/en-us/library/ms536651%28v=vs.85%29.aspx[^], you see that Microsoft only allows the following arguments, If using that argument at all:

_blank
_media
_parent
_search
_self
_top
 
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