Handling For Cross Browserto support window.URL