Report question

Question: Is it possible to trigger the onbeforeunload event programmatically?