Gossamer Forum
Home : General : Perl Programming :

Form Submit Button?

Quote Reply
Form Submit Button?
Is it possible to change the normal submit "button" into a "text" link instead?

If so what would the code be?

---------------
Cricket Web - http://www.cricketweb.net
Cricket Web Forum - http://forum.cricketweb.net/
---------------
Quote Reply
Re: [Philip_Clark] Form Submit Button? In reply to
Sure is....


Code:
<script language="JavaScript" type="text/javascript">
<!--
function send ()
{
document.form_name.submit() ;
}
-->
</script>

<a href="javascript:send()">Submit</a><br>

That should work.

Last edited by:

RedRum: Nov 1, 2001, 3:34 AM
Quote Reply
Re: [RedRum] Form Submit Button? In reply to
Thanks - works a treat Cool.

---------------
Cricket Web - http://www.cricketweb.net
Cricket Web Forum - http://forum.cricketweb.net/
---------------
Quote Reply
Re: [RedRum] Form Submit Button? In reply to
Cool! I didn't actually think of that before now! Seems so obvious!

Thanks Paul! :-)

- wil
Quote Reply
Re: [Philip_Clark] Form Submit Button? In reply to
Of course, in terms of ensuring that the form is accessible across all types of browser configurations (like disabling javascript), you should add alternative codes to make sure that if a user has disabled javascript that they can still process information through your site.
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Chewbaca] Form Submit Button? In reply to
Yep. I wouldn't want to use this, anyway. A better way would to create an image as a submit button, and make the image appear as normal text. That would make it more accessible by a greater number of people?

- wil
Quote Reply
Re: [Wil] Form Submit Button? In reply to
That would be best...or if you wanted to make your buttons more aesthetically pleasing, you could use CSS1 codes (of course, the background color is not supported in earlier versions of Netscape, but you can create a class called 'input' that would allow you to resize text in buttons).
========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: [Chewbaca] Form Submit Button? In reply to
Yeah, I've been using this already. Great stuff. You can even define the shadow on your buttons these days! :-)

- wil
Quote Reply
Re: [Wil] Form Submit Button? In reply to
.....and I recently discovered that you can change the color of your scrollbar by moving your mouse over it.

When I say "I discovered" I mean I found that you could do it, not that I created the code.