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

RESOLVED INVALID

Status

SeaMonkey
General
RESOLVED INVALID
16 years ago
14 years ago

People

(Reporter: alexp, Assigned: Matti)

Tracking

Trunk
x86
Windows XP

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

16 years ago
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...

Comment 1

16 years ago
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
Last Resolved: 16 years ago
Resolution: --- → INVALID
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.