Board index   FAQ   Search  
Register  Login
Board index php forum :: HTML JavaScript

textlink for subit button

Javascript coding ..

Moderators: macek, egami, gesf

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?
tranquillo
New php-forum User
New php-forum User
 
Posts: 74
Joined: Sun Nov 24, 2002 6:48 pm
Location: katrineholm

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.
liquedus
php-forum Active User
php-forum Active User
 
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada

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

<a href="javascript:void(0);" onclick="form.Submit();">
User avatar
Redcircle
Moderator
Moderator
 
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

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.
User avatar
WebOutGateway
New php-forum User
New php-forum User
 
Posts: 36
Joined: Mon Jun 13, 2011 9:25 pm
Location: Pasig City, Philippines


Return to JavaScript

Who is online

Users browsing this forum: No registered users and 0 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.