Forum Moderators: open

Message Too Old, No Replies

simple question about buttons

buttons as links

         

salo

10:13 pm on Jul 14, 2005 (gmt 0)

10+ Year Member



how do i just make a button so that when it is pressed will simply open a new window to another page?

i think i should know this.

MichaelBluejay

1:34 am on Jul 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



<INPUT type=submit onclick="window.open('file.html')">

kaled

10:33 am on Jul 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think this was discussed ages ago. Someone suggested wrapping the button within <a href="file.html"></a>. I can't remember what conclusions were drawn so if it seems to work, try it on IE, Opera and FF. Also I don't know if it will validate - somehow I doubt it.

You could always use CSS to fake a button, or use an image of a button. These methods will work even if javascript is disabled.

Kaled.