I have a
JS function that is supposed to be called in the body tag like this:
<body ONLOAD="preloadTopImages();">
Is there a way to call this function without having to put it in the body tag? Can I call it in my
JS script in the header tag by making another function that loads this function? Thanks for any help
<script language="Javascript">
<!--
var preloadFlag = false;
function preloadTopImages() {
if (document.images) {
contract_over = newImage("/test/images/top_nav/contract_vehicl_button_over.gif");
smallbiz_over = newImage }
}
//-->
</script>