JavaScript mengubah nilai atribut data

element.dataset.keyName = 'newValue';
Friendly Finch