首页 > 解决方案 > Tableau JS 扩展:window.open()

问题描述

在传统的javascript中,我们可以使用打开一个新窗口

window.open("..","..","..")

例如(test.html)

function openWindow(){
   window.open("about:blank","hello","width=420;height=300");
}

如果我在我的 localhost 上启动我的 test.html,脚本工作正常。

在 tableau Desktop 中使用 Js 扩展,添加 .trex 文件后,我无法使用 window.open() 触发弹出窗口。我想知道这在画面中是否可能,如果不可能,是否有其他替代方法或方法?

标签: javascripttableau-apitableau-desktop

解决方案


推荐阅读