Closed Bug 288968 Opened 20 years ago Closed 20 years ago

Firefox can not run document.getElementByID()

Categories

(Toolkit Graveyard :: Error Console, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: yong_ming, Assigned: bugs)

Details

User-Agent:       Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Build Identifier: 

Here is the sample:

function onEnterSubmit() {
   document.getElementById("NextBtn").click();
}

<input type="button" class="button" altClass="button-disabled" title="Next" 
onClick="javascript:submitForm('accountselectionnext');return false;"  
value="Next" name="NextBtn">&nbsp;

Error:

Error: document.getElementById("NextBtn") has no properties
Source File: https://flagship17.vanguard.com:9443/VGApp/hnw/VFPServlet?
FW_Event=next
Line: 259

It works all fine with MS IE browser 6.0

Reproducible: Always

Steps to Reproduce:
1.NA
2.
3.

Actual Results:  
No action
There is no "id" attribute on the input element.
Thus document.getElementById("NextBtn") is null.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.