Cookie2

Cookie consent notice like Cookie with different default button labels, storing agreement in localStorage

Live preview

Open in new tab ↗
  • singleton
  • uses localStorage
  • supports cancel operation (removes cookies, localStorage and redirects to about:blank)

Configuration:

  • agree {String} a label for the agree button (default: OK)
  • cancel {String} a label for the cancel button (default: Cancel)
  • redirect {String} URL to redirect if the user pressed cancel button (default: about:blank)

More UI components

Browse all 348