We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,439 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How do you submit a form using Javascript?

Use document.forms[0].submit();
(0 refers to the index of the form – if you have more than one form in a page, then the first one has the index 0, second has index 1 and so on).

2
Contributors
1
Reply
3 Hours
Discussion Span
8 Months Ago
Last Updated
2
Views
Boby Smith
Newbie Poster
7 posts since Dec 2011
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 0

Java and JavaScript are not the same, I think you are mistaken with this forum.

stultuske
Industrious Poster
4,490 posts since Jan 2007
Reputation Points: 1,377
Solved Threads: 630
Skill Endorsements: 25

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0776 seconds using 2.91MB