Exacly:
How to delay executing of javascript if you cannot use
defer nor body onload due to output overwrites content of
page
Example:
I have to show flash baner from outside adsever:
<SCRIPT LANGUAGE="JavaScript">
document.write('<SCR'+'IPT LANGUAGE="JavaScript"
SRC="http://adserver/path/script?parameters"; ><\/SCR'+'IPT>');
</SCRIPT>
but browser waits until this script is downloaded to
execute it. The page is stoped in half of lenght. User must
wait to see rest of page.
I want browser to download and execute javascript only
after all page is shown.
defer="defer" - doesn't work because it clears page and
draws only baner code
body onload - the same as above
What to do?
Martin
How to delay executing of javascript if you cannot use
defer nor body onload due to output overwrites content of
page
Example:
I have to show flash baner from outside adsever:
<SCRIPT LANGUAGE="JavaScript">
document.write('<SCR'+'IPT LANGUAGE="JavaScript"
SRC="http://adserver/path/script?parameters"; ><\/SCR'+'IPT>');
</SCRIPT>
but browser waits until this script is downloaded to
execute it. The page is stoped in half of lenght. User must
wait to see rest of page.
I want browser to download and execute javascript only
after all page is shown.
defer="defer" - doesn't work because it clears page and
draws only baner code
body onload - the same as above
What to do?
Martin