Posted by ASM on 10/11/06 14:33
Cleverbum@hotmail.com a écrit :
> I'm hoping to execute some code "when the page has completely finished
> loading" by which I mean the page and all the images on it, does anyone
> know of a way to do this?
<script type="text/javascript">
function sthg() {
document.body.style.background='orange';
}
onload = function() { sthg(); alert('all loaded'); };
</script>
does alert fires before all images loaded ?
Navigation:
[Reply to this message]
|