homepage Welcome to WebmasterWorld Guest from 54.227.171.163
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
<input type>
circuitjump

10+ Year Member



 
Msg#: 958 posted 3:13 pm on Aug 17, 2001 (gmt 0)

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

10+ Year Member



 
Msg#: 958 posted 3:20 pm on Aug 17, 2001 (gmt 0)

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

circuitjump

10+ Year Member



 
Msg#: 958 posted 3:21 pm on Aug 17, 2001 (gmt 0)

Thanks!

circuitjump

10+ Year Member



 
Msg#: 958 posted 3:29 pm on Aug 17, 2001 (gmt 0)

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

10+ Year Member



 
Msg#: 958 posted 3:35 pm on Aug 17, 2001 (gmt 0)

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

10+ Year Member



 
Msg#: 958 posted 3:49 pm on Aug 17, 2001 (gmt 0)

Cool,
Thanks for the pointers

:)

MikeFoster

10+ Year Member



 
Msg#: 958 posted 9:11 pm on Aug 17, 2001 (gmt 0)

To cancel form submission return false in the onSubmit handler:

<form onsubmit="return false">

...

</form>

circuitjump

10+ Year Member



 
Msg#: 958 posted 4:45 pm on Aug 20, 2001 (gmt 0)

Great, Thanks :)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved