Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- document.getElementById vs document.write?


ewwatson - 12:22 pm on Nov 12, 2012 (gmt 0)


Thank you! But I had a little trouble following your analogy. So getElementById is sort of like asynchronous loading? It can load along with the rest of the page? Whereas doc.write the browser has to freeze - render js - then move on to the rest. Is that correct?

The text is added only when js is on. When js is off I dont want it there. I have 6 other ways to do this, this and oc.write though are the only ones I can keep my js at the bottom and have this js loaded text show up fast. And not be regular html text because google doesnt need to see this.


Thread source:: http://www.webmasterworld.com/javascript/4518258.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com