- try catch around window.top access to prevent permission problem