Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Netscape 6 - onChange problem

Status
Not open for further replies.

HobbyMan

Programmer
Sep 22, 2000
25
0
0
US
My "onChange" code is executing in Netscape 6.2.2 even when I
make no change.

The problem really is that I come into my page the first time
and it works just fine (change the data and the onchange event
code fires). If I do a refresh on the page, which sets the data
back to original values, then make no changes and leave any
field, my onchange code fires (which is the problem).

Is this just a problem with Netscape 6 or could there be
something wrong with my code?

Lance
 
Well I have narrowed down the problem. Towards the bottom
of my HTML document I have the following:

<SCRIPT language=&quot;JavaScript&quot;>
document.CSCR.txtSrTitle.focus();
</SCRIPT>

If I comment out that &quot;focus&quot; call, then everything is OK.
It seems the &quot;focus&quot; call makes the form think something
has changed.

Is this odd behaviour?

Lance
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top