Document.create

0 Jeff Gong · September 15, 2015
What is Document.create

Post a Reply

Replies

Oldest  Newest  Rating
0 Brotsky Tv · September 19, 2015
hey there !


In an HTML document, the 

Document.createElement()

 method creates the specified HTML element or an 
HTMLUnknownElement if the given element name isn't a known one.

In a XUL document, it creates the specified XUL element.
In other documents, it creates an element with a 
null namespace URI.


Syntax

var element = document.createElement(tagName);


element is the created  Element object.

- tagName is a string that specifies the type of element to be created. 
- The nodeName of the created element is initialized with the value of tagName
- Don't use qualified names (like "html:a") with this method.



For more Javascript Tutorials : https://www.brotsky.tv/category/javascript/
0 Casper Hollemans · September 16, 2015
http://www.w3schools.com/jsref/met_document_createelement.asp
  • 1

Javascript

107,083 followers
About

A scripting language that is added to standard HTML to create interactive effects, apps, games for the browser.

Links
Moderators