Closed Bug 147039 Opened 22 years ago Closed 22 years ago

method form.submit() doesn't work (Javascript)

Categories

(SeaMonkey :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: ziorufus, Assigned: Matti)

Details

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc1)
Gecko/20020417
BuildID:    2002041711

I'm a webmaster and I noticed that the method submit() in Javascript doesn't
work. I put in the link "javascript:formname.submit()" and it doesn't work. It
works under IE.

Reproducible: Always
Steps to Reproduce:
I don't know...
try this:
javascript:document.formname.submit();

From the DOM Level 1 specification: "all DOM objects live in the context of a
specific Document." 
I think that's the specific bit relevant to this, though I might be mistaken.
However, you definitely need to specify the context, aka the document. - the
fact that Internet Explorer accepts your code is a bug/feature (depending on how
you want to look at it) in IE. 
see http://www.w3.org/DOM/DOMTR for the DOM specification.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.