ti posto un esempio che funziona con IE,
ma che non sono certo sia possibile rendere crossbrowser
(potrebbero sorgere problemi con lo stesso IE dichiarando il doctype, puoi approfondire qui l' argomento, c' è una bella tavola riassuntiva)

codice:
function scrolla(){
	self.scrollBy(0,5)
	if (document.body.scrollTop==document.body.scrollHeight-document.body.clientHeight){
		self.scrollTo(0,0)
	}
}
ciao ciao