dnakamashi Posted June 2, 2006 Share Posted June 2, 2006 I've created a table object this way: var tab = document.createElement("table")I tried to insert the tab object into a div this way: document.getElementById("divname").innerHTML = tabBut it doesn't work. Appear the following mesage in the Firefox: [object HTMLTableElement] Link to comment Share on other sites More sharing options...
dnakamashi Posted June 3, 2006 Author Share Posted June 3, 2006 I get it!I can add the object table this way: document.getElementById('name').appendChild(tab) Link to comment Share on other sites More sharing options...
Jack McKalling Posted June 3, 2006 Share Posted June 3, 2006 Great you've solved it Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now