Closed Bug 237949 Opened 20 years ago Closed 20 years ago

Does not run certain javascript code to set input text value with, form.input.value = "value"

Categories

(Firefox :: General, defect)

x86
Linux
defect
Not set
major

Tracking

()

RESOLVED INVALID

People

(Reporter: h2kgenesis, Assigned: bugzilla)

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8

Problem may extend to all versions of mozilla, the javascript engine does not
run the javascript to set input text values with, form.input.value = "value"

Reproducible: Always
Steps to Reproduce:
1. Find javascript function that sets the input text value with form.input.value
= "value"
2.Try to run the script
3.Mozilla will not run the script

Actual Results:  
It would not execute the javascript function.

Expected Results:  
Set the input text box value to a certain value.
I think this is a syntax problem with your JS.  Shouldn't that more correctly be:

document.form.input.value = "value";

I can't remember if that's exactly correct (the document prefix is needed, but
the rest afterwards looks like some sort of pseudo-HTML DOM that probably
doesn't work).
Invalid.  document.form.etc is correct syntax.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.