Filter.enabled (Property)

A flag indicating whether a filter is enabled.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Boolean primitive
JavaScript syntax:IEmyFilter.enabled

This value can be set true or false to switch a filter in and out of the display.

Example code:

   // Alternative ways of referring to a filter
   // and controlling its enabled state.  This assumes
   // the filter was instantiated with a <STYLE> tag previously.
   myFilters = myElement.filters;
   myFilter1 = myFilters.item(1);
   myFilter2 = myFilters.item("DXImageTransform.Microsoft.Alpha");
   myFilter1.enabled = true;
   myFilter2.enabled = false;