Return to Snippet

Revision: 50590
at August 27, 2011 06:10 by vagrantradio


Initial Code
<a href="javascript:{}" onclick="document.getElementById('theFormName').submit();">submit</a>

or 

<a href="#" onclick="return doMyBidding();">submit</a>

<script>
function doMyBidding() {
  var answer = confirm("Are you sure you want to do my bidding?");
  if (answer){
    document.getElementById('theFormName').submit();
  }
}
</script>

Initial URL

                                

Initial Description
Trivial, but meh.

Initial Title
Submit Form with Link

Initial Tags

                                

Initial Language
JavaScript