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


daveVk - 12:05 am on Nov 14, 2012 (gmt 0)


The rules on what DOM operations are safe prior to onload are unclear to me.

Conservative practice is to wait for onload.

Some operations clearly work prior to onload and are a better alternative to document.write().

With practice of putting js at end of body (or even higher), is waiting for onload obsolete ?


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