Log in

View Full Version : Javascript Function on Page Load


rogersnm
07-27-2006, 11:41 AM
What would i use to make a function be executed upon page load?

would it be something like:
<body onload="initiate_ajax_sig()">
$html
</body>
or:
<script type="text/javascript">
<!--

window.onload = function(){initiate_ajax_sig()}

-->
</script>
or:
<script type="text/javascript">
<!--

window.onload = initiate_ajax_sig()

-->
</script>

any ideas?