Handling Cross Browser Issue to support window.URL