View Full Version : Use Text as Submit Button?
CyberScout
11-14-2002, 06:47 PM
Can anyone tell me if there is a way to use normal text as a submit button?
Maybe using OnSubmit function in a span class or something. I know you can make an image a button, but I was hoping to make text a button as well.
Thanks in advance
Garadon
11-14-2002, 07:24 PM
Put this in head
<style>
.btn {
BACKGROUND-COLOR:transparent;
BORDER-TOP-WIDTH: 0px;
BORDER-LEFT-WIDTH: 0px;
BORDER-RIGHT-WIDTH: 0px;
BORDER-BOTTOM-WIDTH: 0px;
FONT-SIZE: 10pt;
}
</style>
and then write u submit button including the class refrance class="btn"
redhead
11-14-2002, 07:41 PM
garadons method is good. if you didnt want a button at all (even though its not going to look like a button) you could use a link:
<a href="javascript:;" onclick="document.FORM NAME.submit();">Submit Form</a>
for that you'll need to give your form a name...
or adapt the above for a span etc...
<span onclick="document.FORM NAME.submit();">Submit Form</span>
hope that'll give you some other options to use
:thumbsup:
CyberScout
11-14-2002, 08:51 PM
RedHead, that worked perfect.
Thanks a lot.
^KoalaBear^
11-15-2002, 05:53 PM
I'd be interested in seeing a working example of it if you have an url...
Cheers
KB...
:thumbsup:
joh6nn
11-15-2002, 09:27 PM
i'm interested in why you want to do that. everyone knows that links lead to new webpages, and everyone knows that buttons submit forms. what happens when you switch them around? people are bound to get confused. also, what happens if javascript is turned off? using a link as a submit button is probably fine, for a personal site, but if this is a project for a larger group ( say a school or business ), then you have to think about those aspects of usability i mentioned, and decide whether your reason for messing with this, is strong enough to counteract the potential problems it could cause.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.