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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I use an image as a button in "Forms" for "OnClick"?

Status
Not open for further replies.

vitf

Technical User
Nov 1, 2000
2
CA
I'd like to use a homemade button in Forms instead of the standard one. Please, tell me if it's possible. And if it does, - how?

Thanks,
Vitaly
 
Use:
<input type='image' onClick='stuff()' name='imgButton'>

X-Browser 90% sure... -BB &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
hi there ...
this's another way:

<input type=&quot;image&quot; src=&quot;file:///c:/filename.xxx&quot; width=&quot;80&quot; height=&quot;55&quot; onClick=&quot;alert('hi')&quot;>
<Always there's a solution>
</Always there's a solution>
 
Oh yeah I forgot the src! oops - correction my code doesn't do shit! You need to tell it what picture to use.
bangers &quot;Alright whatever man, I'll hook up the hair, but I aint touchin the ring...Cause I'm still a pla--yer&quot;
 
not all people are smart like u ;)

don't be mad with me. <Always there's a solution>
</Always there's a solution>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top