kl'eventi di default, se non ne stabilisci uno, è onload

<body>

<script>

function pippo()
{
alert()
}

pippo()

</script>

</body>