Report question

Question: How to implement an 'onVisible' event in JavaScript?