0

我正在尝试根据链接https://rdrr.io/cran/shiny/man/urlModal.html使用 URLmodal() 方法打开一个弹出窗口以使用 URL 打开

有人可以显示在弹出窗口中打开 google.com 的方法吗?

4

1 回答 1

0

urlModal()仅在模态对话框中显示 url 文本(使用showModal()),如文档中所述。

如果您需要打开浏览器的新窗口作为弹出窗口,您可以在应用程序的 UI 部分中插入一些作为 HTML 标记的 javascript:

HTML('<button id="go" type="button" class="btn btn-default action-button" onclick="window.open(\'https://www.google.com\',\'popUpWindow\',\'height=500,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes\');">Go</button>')

将此作为更改选项的参考。

于 2021-08-04T09:01:24.223 回答