问题描述
我正在将应用程序从使用javax.help的浏览器移动到用户的桌面Web浏览器,但是我想知道如何防止用户在单击文档的不同部分时打开许多打开的窗口/选项卡.我看不到在Java URI或对Desktop.browse的调用中指定HTML目标的任何方法.在Desktop.browse之内(或之外),是否可以用Java来实现?
I'm moving an application from using javax.help's browser to the user's desktop web browser, but I'm wondering how to prevent the user from winding up with many windows/tabs open as they click to different parts of the document. I don't see any way to specify an HTML Target in a java URI or a call to Desktop.browse. Is there any way to do this in Java within (or outside) Desktop.browse?
推荐答案
当前对此不支持.
相反,您可以打开一个唯一的HTML文档,该文档显示指向其他文档的链接.链接将在浏览器中打开,而无需打开新窗口/标签.
Instead, you can open a unique HTML document which display links to other documents. Links will be opened within the browser without opening new window/tab.
这篇关于Java的Desktop.browse可以提供HTML Target以便重用浏览器窗口吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!