Is this working?

if this isn't working nobody will see it anyways

Noice

onbeforeunload="cheekyfile()">