InPrivateFilteringEnabled method
Detects whether the user has enabled InPrivate Filtering.
![]() |
Syntax
object.InPrivateFilteringEnabled(pfEnabled)Parameters
- pfEnabled [out, retval]
-
Type: Boolean
Returns true if the user has enabled InPrivate Filtering; false otherwise.
Return value
Type: Boolean
Returns true if the user has enabled InPrivate Filtering; false otherwise.
Standards information
There are no standards that apply here.
Examples
The following example detects whether InPrivate Filtering is enabled. Publishers and Web sites can use this approach to customize their experience for customers who browse with InPrivate Filtering.
<script type="text/javascript"> if (window.external.InPrivateFilteringEnabled() == true) { document.write("The user has InPrivate Filtering enabled."); } else { document.write("The user has InPrivate Filtering disabled."); } </script>
See also
Show:
