catch possible attempts to leave page, alert viewer. close button on offsite frame, bind esc key close.