Web Component: j-Cookie2


  • Info
  • HTML
  • JS
  • CSS
  • Meta
  • 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)

Author