-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
  • 40,575
  • 10
  • 44
  • 74

1 Answers1

1

Use navigator.cookieEnabled:

console.log(navigator.cookieEnabled);
Jack Bashford
  • 40,575
  • 10
  • 44
  • 74