Its not that complicated! this code works in FF and other browsers!

put this in your head:

<script language="javascript">
function scrolltotop() {
scroll(0,0);
}
</script>