DOM Manipulation

20 min read 2 views Jane Editor
Share:

Select and modify elements.

The DOM

document.querySelector('#btn').addEventListener('click', () => {
  alert('Clicked!');
});

Comments (0)

Comments are disabled for this site.