Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

query selector

const myHeading = document.querySelector('h1');
myHeading.textContent = 'Hello world!';
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #query #selector
ADD COMMENT
Topic
Name
3+4 =