fred asselyon Posted April 14, 2006 Share Posted April 14, 2006 Is it possible to make the <a> element act like a submit button with javascript onClick thing?something like:<a href="#" onClick='thecode'>Submit</a>Thanks in advance! Link to comment Share on other sites More sharing options...
raimo Posted April 14, 2006 Share Posted April 14, 2006 Is it possible to make the <a> element act like a submit button with javascript onClick thing?something like:<a href="#" onClick='thecode'>Submit</a>Thanks in advance! <{POST_SNAPBACK}> Yes it is.<a href="#" onclick="document.forms['form1'].submit()">Submit</a>or<a href="java script:document.forms['form1'].submit()">Submit</a><form name="form1" action="" method="post"> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now