Document.createElement() – Javascript DOM

You can create new HTML elements in your websites or web applications using the document.createElement method. This method takes one parameter, the ‘tag name’ (meaning the type of element to create) such as a DIV, P, INPUT or anything you like. Today we look at how we can create an element and also how we can add it to the actual webpage. For your reference (cheers Mozilla!): 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 *