JavaScriptData attributes


Syntax

  • var x = HTMLElement.dataset.*;
  • HTMLElement.dataset.* = "value";

Remarks

MDN Documentation: Using data attributes.