Last active
November 5, 2022 18:32
-
-
Save gwpantazes/be6658429e6399dc7daa39a251db44a6 to your computer and use it in GitHub Desktop.
Smoke test to modify an HTML document with 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
let newelement = document.createElement('h1') | |
newelement.textContent = 'MODIFIED' | |
document.getElementsByTagName('h1')[0].append(newelement) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment