Forum Moderators: open

Message Too Old, No Replies

Html button that open in a new window?

         

brakkar

11:45 am on Oct 16, 2004 (gmt 0)

10+ Year Member



<FORM>

<INPUT TYPE="BUTTON" VALUE="Teest" ONCLICK="window.location.href='http://www.test.com/'">

</FORM>

Hello,
is it possible to have this button open the link in a new window? If yes, how?

Thanks in advance,
Brakkar

Birdman

11:49 am on Oct 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Absolutely! Instead of changing the location of the current window, you create another one.

onclick="window.open('Name', 'h*tp://www.test.com/');"

brakkar

12:07 pm on Oct 16, 2004 (gmt 0)

10+ Year Member



Thanks but it won't work. It seems nothing is happening?

Cordially,
Brakkar

brakkar

12:29 pm on Oct 16, 2004 (gmt 0)

10+ Year Member



Ok, i just removed the 'name' data and it works now :) .

Brakkar