/ Forside / Teknologi / Udvikling / HTML / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
HTML
#NavnPoint
molokyle 11184
Klaudi 5506
bentjuul 3377
severino 2040
smorch 1950
strarup 1525
natmaden 1396
scootergr.. 1320
e.c 1150
10  miritdk 1110
form question
Fra : Newbie


Dato : 11-05-02 00:42

Does anyone know how to put the selected webpage in a new window?
target="new" does not seem to work..
thanks in advantage
=======
<html>
<form name="drop_down">
<select name="surf"
onChange="location=document.drop_down.surf.options[document.drop_down.surf.s
electedIndex].value;" value="GO">
<option value="http://www.gotoanewwindow.com">this page stays in the same
window </option>
</select>
</form>
</body>
</html>



 
 
Knud Gert Ellentoft (11-05-2002)
Kommentar
Fra : Knud Gert Ellentoft


Dato : 11-05-02 01:24

Sat, 11 May 2002 01:42:07 +0200, skrev "Newbie"
<remove_this_to_mail_raadpleeg@hotmail.com>:

>Does anyone know how to put the selected webpage in a new window?
>target="new" does not seem to work..

<form name="jump">
<select name="surf"
onChange="window.open(this.options[this.selectedIndex].value,'_blank')">
<option value="http://www.something.com">Linktext
<option value="http://www.anotherthing.com">Linktext
</select>
</form>
--
med venlig hilsen
Knud
http://home13.inet.tele.dk/smedpark/
Svar kun i nyhedsgruppen - tak! E-mails besvares ikke.

Ronny Bruus (14-05-2002)
Kommentar
Fra : Ronny Bruus


Dato : 14-05-02 21:47


"Newbie" <remove_this_to_mail_raadpleeg@hotmail.com> skrev i en meddelelse
news:abhluk$qo6$1@news.hccnet.nl...
> Does anyone know how to put the selected webpage in a new window?
> target="new" does not seem to work..
> thanks in advantage
> =======
> <html>
> <form name="drop_down">
> <select name="surf"
>
onChange="location=document.drop_down.surf.options[document.drop_down.surf.s
> electedIndex].value;" value="GO">
> <option value="http://www.gotoanewwindow.com">this page stays in the same
> window </option>
> </select>
> </form>
> </body>
> </html>
>
>

target = "_blank"

Mvh
Ronny



Søg
Reklame
Statistik
Spørgsmål : 177560
Tips : 31968
Nyheder : 719565
Indlæg : 6408952
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste