English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

How can i make this script launch the hyperlink in a new window? The script currently hyperlinks your selected option but i want to make the target _blank / a new window.

I have the hyperlink default set to _blank but the link is still loading in the same window.





Im sure you need to change this part "window.location.href=this.value" but to what...?

Thanks.

2007-01-06 20:59:15 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

onchange="window.location.href=this.value;

2007-01-06 21:00:40 · update #1

I dont know if you can read that, on my side it keeps adding... to the script so i will post it in parts.

onchange=
"window.location.href
=this.value;"

2007-01-06 21:01:30 · update #2

1 answers

ONCHANGE="window.open( this.options[ this.selectedIndex].value)"

2007-01-06 21:12:37 · answer #1 · answered by Kookiemon 6 · 0 0

fedest.com, questions and answers