Export (0) Print
Expand All

doNotTrack property

Returns a String indicating whether the user set a preference not to be tracked .

Internet Explorer 9

 

Syntax

JavaScript

p = object.doNotTrack

 

Property values

Type: String

the return value.

Standards information

Remarks

As of Project Spartan, the "-ms-" prefixed version of this property is not supported in the EdgeHTML engine.

When the Do Not Track user preference is set on a document, doNotTrack returns true.


document.navigator.doNotTrack == "1"

See also

navigator

 

 

Show:
© 2015 Microsoft