이 문서는 아직 자원 봉사자들이 한국어로 번역하지 않았습니다. 함께 해서 번역을 마치도록 도와 주세요!
Returns a Boolean value indicating whether cookies are enabled or not (read-only).
Syntax
var cookieEnabled = navigator.cookieEnabled;
cookieEnabled
is a Booleantrue
orfalse
.
Example
if (!navigator.cookieEnabled) { // let the user know that enabling cookies makes the web page much more useful }
Specifications
Specification | Status | Comment |
---|---|---|
WHATWG HTML Living Standard The definition of 'Navigator.cookieEnabled' in that specification. |
Living Standard | Initial definition |
Browser compatibility
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | (Yes) | 1.0 (1.7 or earlier) | (Yes)[1] | (Yes) | (Yes) |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | ? | 1.0 (1.0)[1] | ? | ? | ? |
[1] Prior to Gecko 8.0 (Firefox 8.0 / Thunderbird 8.0 / SeaMonkey 2.5), window.navigator.cookieEnabled
would report the wrong result if a site exception was in place for the page on which the check was performed. This has been fixed.
문서 태그 및 공헌자
태그:
이 페이지의 공헌자:
Sebastianz,
anthonyryan1,
teoli,
MHasan,
kscarfone,
DD0101,
Shraddha_Magdum,
Prachi_Dighe,
Sheppy,
ziyunfei,
Mgjbot,
Nickolay,
Diablownik,
Dria,
JesseW
최종 변경:
Sebastianz,