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 Microsoft Edge, 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: