java.awt.Desktop.browse() method issue

2019-08-08 19:54发布

问题:

When we use Desktop.browse method to open a url in Internet Explorer, then it overrides the current web page in the browser. Hence if user was doing anything critical in current page in browser, then its all lost.

This does not happen in IE8 and firefox. But the problem is there in IE6.

Has anybody found a fix for this problem in IE6.

回答1:

Change the settings in IE to open a new window. As you pointed out the settings is available in

Tools->Internet Options->Advanced->Reuse Windows for shortcuts



标签: java url browser