textlink for subit button

Javascript coding ..

Moderators: macek, egami, gesf

tranquillo
New php-forum User
New php-forum User
Posts: 74
Joined: Sun Nov 24, 2002 6:48 pm
Location: katrineholm
Contact:

textlink for subit button

Postby tranquillo » Fri Jun 06, 2003 10:04 am

Hi.
does anyone know how to make a submit button out of a text link?

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Fri Jun 06, 2003 11:00 am

<a href="javascript: this.document.yourFormName.submit()">Submit</a>
Last edited by liquedus on Fri Jun 06, 2003 11:56 am, edited 1 time in total.

User avatar
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » Fri Jun 06, 2003 11:42 am

<a href="javascript:void(0);" onclick="form.Submit();">

User avatar
WebOutGateway
New php-forum User
New php-forum User
Posts: 37
Joined: Mon Jun 13, 2011 9:25 pm
Location: Pasig City, Philippines
Contact:

Re: textlink for subit button

Postby WebOutGateway » Sun Aug 03, 2014 9:31 pm

Hi!

Just like what they have answered, you can do this by creating a link, calling your form upon onclick and using the submit function. Like this,

Code: Select all

<a href="#" onclick="document.forms['your_form_name_here'].submit();">Here is your submit text link!</a>

I hope this helps. Thank you.


Return to “JavaScript”

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest