Prev: FAQ Topic - Why doesn't the global variable "divId" always refer to the element with id="divId"? (2010-04-10)
Next: ECMA-262-3 in detail. Chapter 8. Evaluation strategy.
From: Thomas 'PointedEars' Lahn on 11 Apr 2010 21:46 VK wrote: >> > That is because you named or id'ed your submit button "Submit" or >> > "submit". >> >> I can see nothing to support that statement. >> The reason is that the input element has not submit method, only the >> form. > > Very true? and that's the point :-) Now try this: > > <form action=""> > <input type="submit" name="submit" value="Submit"> > </form> > > and now document.forms[0].submit() or any variants. A very old DHTML > oops, never fixed. Nobody ever called document.forms[0].submit() here in the first place. When will you have learned to quote? PointedEars -- Danny Goodman's books are out of date and teach practices that are positively harmful for cross-browser scripting. -- Richard Cornford, cljs, <cife6q$253$1$8300dec7(a)news.demon.co.uk> (2004) |