document.queryselector button code example Example: queryselector document.querySelector(".example");