InPrivateFilteringEnabled Method
Detects whether the user has enabled InPrivate Filtering.
Syntax
bEnabled = window.external.InPrivateFilteringEnabled()
Return Value
Returns true if the user has enabled InPrivate Filtering; false otherwise.
Example
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>
Applies To
external