Javascript Function on Page Load
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?
|