Created
August 18, 2011 16:29
-
-
Save louisremi/1154464 to your computer and use it in GitHub Desktop.
insertAdjacentHTML API
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
| // HTML inserted before elem in the DOM | |
| elem.insertAdjacentHTML( "beforebegin", ... ) | |
| // inside elem, before its first child | |
| elem.insertAdjacentHTML( "afterbegin", ... ) | |
| // inside elem, after its last child | |
| elem.insertAdjacentHTML( "beforeend", ... ) | |
| // HTML inserted after elem in the DOM | |
| elem.insertAdjacentHTML( "afterend", ... ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment