![]() |
Javascrrrrript help needed...
I have a drop down menu that loads the links automatically when an option is selected in the menu.
I'm using this line: (form) (select name="SiteMap" onchange="if(options[selectedIndex].value){location = options[selectedIndex].value; target=_TOP}" size="1") (option value="http://link.com")LINK(/option) (option value="http://link2.com")LINK 2(/option) (/select) (/form) and the link opens in the same window... now how do I go about opening the link in a new window? setting the target to _NEW or _BLANK doesn't seem to work. |
Quote:
onchange="if(options[selectedIndex].value){location = options[selectedIndex].value; target=_TOP}" size="1") with something like onchange="if(options[selectedIndex].value){ window.open(location) }" size="1") |
thanks :)
2 secs after i posted, i decided to search google, and i found this which seems to work fine: select onChange="PopUp=window.open('','PopUp');PopUp.loca tion=options[selectedIndex].value;" |
All times are GMT -7. The time now is 08:30 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123