Error The Form Is Undefined
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might form is undefined javascript have Meta Discuss the workings and policies of this site About angular form undefined Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads angularjs form undefined with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers,
Document.form Is Undefined Javascript
just like you, helping each other. Join them; it only takes a minute: Sign up Form “is undefined” error in Firefox up vote 6 down vote favorite 1 I have this code, let say it's a.html
script // 1 : start document.frmSubmit.action = 'b.html'; document.form.name.value in javascript document.frmSubmit.submit(); // 1 : end // 2 : start document.getElementById("frmSubmit").action = 'b.html'; document.getElementById("frmSubmit").submit(); // 2 : end Both 1 and 2 are working in IE (IE 8), but not in FF (3.6.10). Firebug gives me the following error: document.frmSubmit is undefined How can I fix it? javascript forms share|improve this question edited Sep 29 '10 at 9:00 Andy Earnshaw 201k49354370 asked Sep 29 '10 at 8:51 tsurahman 94941123 Both methods should work fine (and do, for me). I suspect your error lies somewhere else and this isn't a true representation of the code you have. See jsfiddle.net/VL8C3, I replaced your methods with simple console outputs so you can see document.frmSubmit is defined. –Andy Earnshaw Sep 29 '10 at 9:05 is it a