File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Can I use onChage event in Netscape 6? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Can I use onChage event in Netscape 6?" Watch "Can I use onChage event in Netscape 6?" New topic

Can I use onChage event in Netscape 6?

Ashwani Yadav
Ranch Hand

Joined: May 23, 2002
Posts: 33
Can I use onChage event in Netscape 6 if yes than I am using it for combo, In that what I have done is on the basis of certain selection I am enabling and disabling the button.
This is working fine in IE but nothing happens in nEtscape 6.
For your reference I am sending my code:
function forEnableDisable()
var objForm = document.reports;//"reports" is my form name.
var lsDesValue = objForm.cmbDesFormat.value;
objForm.btnPrintReport.disabled=true;//"btnPrintReport" is the name of button which I want to disable.
return true;
The above function I am calling from combo,as :
<select name="cmbDesFormat" class="clselectbox" tabindex = "6" size="1" onChange="forEnableDisable();">
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
everything fine with onchage event.
But, 1. disable is not working in Netscape, this is IE only attribute.
2. SELECT element does not have "value" property in NS - you should use
subject: Can I use onChage event in Netscape 6?
It's not a secret anymore!