onbeforeunload is more useful because you have the DOM to work with - there's not much you can do on the actual page itself with onunload except send off a quick ajax request to record whatever u need. keep in mind though that opera (i believe even the latest version) doesnt support onbeforeunload
__________________
Feel free to e-mail me if I forget to respond ;) ohsosexybrit@gmail.com