![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
"Before document load event document.write only. Ohmmm... After document load event DOM methods only. Ohmmm..." |
|
P.S. Before document load event document.write temporary switches the input stream from server to script generated instream and after that continues with the server instream. After document load event document.write clears any current document content and replaces it with script generated instream. Simple as a moo-cow yet keeps breaking many serious "corporate" solutions for over ten years by now... |
#2
| |||
| |||
|
|
On Sun, 09 Mar 2008 03:31:07 -0700, VK wrote: "Before document load event document.write only. Ohmmm... After document load event DOM methods only. Ohmmm..." so, to write content from javascript to the browser before the document load event, I need to put script somewhere inside the *body*? Is that the only way? |
|
After document load event document.write clears any current document content and replaces it with script generated instream. Simple as a moo-cow yet keeps breaking many serious "corporate" solutions for over ten years by now... Thanks for the tip. |
![]() |
| Thread Tools | |
| Display Modes | |
| |