By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,527 Members | 1,256 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,527 IT Pros & Developers. It's quick & easy.

Difference between document.body.innerHTML and document.write

P: 7
This is to discuss pros and cons of each other.
Oct 12 '07 #1
Share this Question
Share on Google+
1 Reply


acoder
Expert Mod 15k+
P: 16,027
You'd use document.write while the page is loading. innerHTML can be used after the page has loaded.

innerHTML is not restricted to the body only.
Oct 15 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.