outerHTML in the JavaScript DOM

The Element.outerHTML property of the Document Object Model allows you to both set and get the outerHTML of an Element. This is a simple HTML string, inclusive of the opening and closing tags. In this video I show an example of both retrieving and getting this property – as well as a demonstrating example of what might happen if you try and change the tag name. For your reference, check this out: https://developer.mozilla.org/en-US/docs/Web/API/Element/outerHTML Follow me on Twitter @dcode! If this video helped you out and you’d like to see more, make sure to leave a like and subscribe to dcode!

It's only fair to share...Tweet about this on TwitterShare on FacebookShare on TumblrShare on Google+Digg thisShare on LinkedInPin on PinterestShare on VKShare on RedditPrint this pageEmail this to someone
Flattr the authorShare on StumbleUponShare on YummlyBuffer this page

Leave a Reply

Your email address will not be published. Required fields are marked *