Welcome to WebmasterWorld Guest from 54.167.85.221

Forum Moderators: incrediBILL

Message Too Old, No Replies

<input type>

     

circuitjump

3:13 pm on Aug 17, 2001 (gmt 0)

10+ Year Member



O.K.
If I wanna use a gif image to be a submit button, what is the HTML code I would use?
Instead of <input type="button">

David

3:20 pm on Aug 17, 2001 (gmt 0)

10+ Year Member



This should work
<input type="image" src="" border="0">

circuitjump

3:21 pm on Aug 17, 2001 (gmt 0)

10+ Year Member



Thanks!

circuitjump

3:29 pm on Aug 17, 2001 (gmt 0)

10+ Year Member



I don't want it to go to a different page but every time I click it, it goes to a page that does'nt exist. Anyway I'm trying to keep it on the same page but it likes going somewhere else.

Is there anyway to get around this?

David

3:35 pm on Aug 17, 2001 (gmt 0)

10+ Year Member



Don't know I have always used it for form submissions never played with it further. The src is your image so when clicked it must be looking for the form action. Perhaps an js onclick to control it.

circuitjump

3:49 pm on Aug 17, 2001 (gmt 0)

10+ Year Member



Cool,
Thanks for the pointers

:)

MikeFoster

9:11 pm on Aug 17, 2001 (gmt 0)

10+ Year Member



To cancel form submission return false in the onSubmit handler:

<form onsubmit="return false">

...

</form>

circuitjump

4:45 pm on Aug 20, 2001 (gmt 0)

10+ Year Member



Great, Thanks :)
 

Featured Threads

Hot Threads This Week

Hot Threads This Month