Dialog box automatically closes if new tab page opens (pop ups should not be blocked for this to work)
Dialog box remains as it is if new page does not open (if pop ups are blocked). User can then manually open the page by clicking the URL in the dialog.
Dialog box when Pop ups are blocked: