get current url

In the plugin which shows the pop up on IE i need the ok button to close the pop up and stay on the current page and not go to a url