Is there a way of trigging a javascript at the end of the <body> tag? Like this

<html>
<body>

Do some html here

<script type="text/javascript">
How do I trig this script automaticly?
</script>
</body>
</html>