homepage Welcome to WebmasterWorld Guest from 54.211.95.201
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
<input type>
circuitjump




msg:619467
 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




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

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

circuitjump




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

Thanks!

circuitjump




msg:619470
 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




msg:619471
 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




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

Cool,
Thanks for the pointers

:)

MikeFoster




msg:619473
 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




msg:619474
 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