-2

Which of the following determines whether cookies are enabled in a browser or not?

Option 1

(navigator.Cookie)? true: false 

Option 2

(application.cookieEnabled)? true: false, 

Option 3

(navigator.CookieEnabled)? true: false,    

Option 4

(application.cookie)? true: false
Jack Bashford
  • 43,180
  • 11
  • 50
  • 79

1 Answers1

1

Use navigator.cookieEnabled:

console.log(navigator.cookieEnabled);
Jack Bashford
  • 43,180
  • 11
  • 50
  • 79