Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hi please explain briefly and and also explain about datadiv ,
var HeadertableObj = HeaderDivObj.appendChild(document.createElement('table'));
what is appendchild
Posted
Comments
Krunal Rohit 19-Nov-15 0:50am    
HeaderDivObj look like an object. Share the declaration of HeaderDivObj.

-KR
Thanks7872 19-Nov-15 1:13am    
http://www.w3schools.com/jsref/met_node_appendchild.asp

1 solution

I guess it's a div :
JavaScript
var HeaderDivObj= document.getElementById('#yourdivid');


And then you are trying to create a table inside this div :

JavaScript
var HeadertableObj = HeaderDivObj.appendChild(document.createElement('table'));


Now What is appendchild?
The appendChild() method appends a node as the last child of a node.

Refer : http://www.w3schools.com/jsref/met_node_appendchild.asp[^]

Good luck
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900