Returns the user’s do-not-track setting. This is “yes” if the user has requested not to be tracked by web sites, content, or advertising.
Property of dom/Navigatordom/Navigator
SyntaxNote: This property is read-only.
var result = navigator.doNotTrack;
Return Value
Returns an object of type
Note that navigator.doNotTrack is not the value sent for the do-not-track header. When the do-not-track header sends "1", navigator.doNotTrack is "yes". When the header is unset, navigator.doNotTrack is "unspecified". When the header sends “0” (currently unsupported in Firefox), navigator.doNotTrack is "no".
Usage Could be used to determine if the client web browser may be blocking some page content.
In MSIE browsers when ActiveX content or other content is blocked an Icon is displayed in the Address bar which the user can click to disable Tracking Protection and/or ActiveX filtering for the current site.
NotesIE9 uses a vendor prefix, eg. navigator.msDoNotTrack
IE9, Opera 12, Safari 5.1, and Chrome 31 are based on an earlier version of this specification where navigator.doNotTrack is the value sent for the do-not-track header.
IE10 and higher do not use the doNotTrack header which is user configured from the Advanced tab of Internet Options. There is no navigator.doNotTrack or navigator.msdoNotTrack property in those MSIE versions.
Standards informationThe current Tracking Preference Expression (Working Draft) is based on an earlier version of this specification where navigator.doNotTrack is the value sent for the do-not-track header.
See also Related pagesMozilla Developer Network : [navigator.doNotTrack Article]
Microsoft Developer Network: [navigator.msDoNotTrack Article]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4