Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<button .................>

Status
Not open for further replies.

carlosAlberto

IS-IT--Management
Oct 9, 2001
109
GB
Hi,
This tag works fine in IE5 but not in Netscape 4.7. The reason i want to use the button tag is: an easy way to include an image in a button. I don't think I can include an image in <input type=button......

Is there a work around this, so that it works fine in netscape?????????????
 
Iza,

I tried: <INPUT TYPE=&quot;image&quot; SRC=&quot;/graphic.gif&quot; NAME=&quot;imgsub&quot; ALIGN=&quot;top&quot; WIDTH=&quot;50&quot; HEIGHT=&quot;50&quot;>

But this doesn't actually look like a button. I may have to result to using onClick.

Thanks
 
yes - it looks like graphic.gif ... so either make graphic.gif look like a button or don't target browser others than ie5+
input type=image behaves like input type=submit - meaning if you want to fire an action it's usually better to fire it onsubmit (in the form tag) than onclick (in the image or submit input type)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top