DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

JavaScript: Programmatically Click The Form Submit Button

03.06.2007
| 45486 views |
  • submit to reddit
        // Programmatically Click the Form Submit Button
// by using the 'click()' method

  submitTags : function()
  {
    var btnSubmitTags = document.getElementById( TagsHelperConfig.FORM_TAGS_ENTRY_SUBMIT_BUTTON_ID );

    // Programmatically click the submit button
    btnSubmitTags.click();
  }