Created
November 2, 2018 18:53
-
-
Save InfoSec812/c31b2c9b7c130570ef7d6348a0a3a6db to your computer and use it in GitHub Desktop.
Demonstrating the use of CSS Selectors in JavaScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var clickCount = 0; | |
| function buttonClickHandler() { | |
| clickCount++; | |
| document.querySelector("button[type]").innerHTML = "Clicked " + clickCount + " times"; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment