...

View Full Version : onLoad event for embedding scripts (IE)



voxecho
10-18-2006, 06:48 PM
I am sorry if this is something asked before but i couldn't think of any search words that wouldn't return a million results.

what i am looking for is a way to tell in IE when a script file is loaded.



<script src="/js/js.js" onload="function(){alert('scripts loaded');}"></script>


not very useful, true, but i am needing it for some DOM/AJAX work. Currently i am using a setTimeout to see when the DOM embedded script file has loaded, but that's cluncky and i would much rather find a way for it to do it automatically.

has anyone done or seen this?

-Thank you
-Echo



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum