window.onload=funzione
(chiaramente tra tag <script>)
oppure
<body onload="funzione()">

ciao