Monday, February 23, 2009

Related Interview Questions of part -------4 of ------7

How do you submit a form using JavaScript?
Posted in JavaScript, Microprocessors Interview Questions
Use document.forms[0].submit()(0 refers to the index of the form – if we have more than one form in a page, then the first one has the index 0, second has index 1 and so on).
Post Your Answer!
Send This to a Friend
What is JavaScript?
How to detect the operating system on the client machine?


Related Interview Questions
Can I use multiple HTML form elements with the same name? 22.12.08
Yes. The issue is that only one action class can be associated with a single form. So the real issue is how do I decode multiple submit types to a single Action...
How to add Buttons in JavaScript? 03.12.08
The most basic and ancient use of buttons are the " submit" and " clear" , which appear slightly before the Pleistocene period. Notice when the " GO!" button is...
Is it possible in HTML to add more than one submit button having different actions in a single form? 01.12.08
Yes it is possible. For each submit button onclick call one javascript function. Get the form id and assign the action url inside the javascript function....
How can we submit form without a submit button? 06.11.08
We can use a simple JavaScript code linked to an event trigger of any form field. In the JavaScript code, we can call the document.form.submit() function to sub...
How can we submit a form without a submit button? 06.11.08
If you don't want to use the Submit button to submit a form, you can use normal hyper links to submit a form. But you need to use some JavaScript code in the UR...
Explain saveToken() function ? 16.10.08
saveToken() method is used for duplicate form submission. Let's take an example i.e. yahoo email registration form You filled the form and press the "subm...
How do I …with JavaScript/JScript … submit forms by e-mail? 15.10.08
The most reliable way is to use straight HTML via a Submit style button. Set the ACTION of the to a mailto: URL and the ENCTYPE attribute to "text/plain". Fo...
How do you submit a form using Javascript? 07.10.08
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 i...
How do I submit a form or a part of a form without a page refresh? 25.08.08
When creating a form make sure that the "form" element "onSubmit" attribute is set to a JavaScript function that returns false. You can also submit d...
How do I submit a form or a part of a form without a page refresh? 18.08.08
When creating a form make sure that the "form" element "onSubmit" attribute is set to a JavaScript function that returns false. You can also submit d...

No comments: