【问题标题】:how to open a hyperlink in new window如何在新窗口中打开超链接
【发布时间】:2014-01-29 13:49:00
【问题描述】:

我正在使用ExtJS 2.3.0

我有一个链接如下-

{ id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", width: 60 }

单击它会在同一窗口中打开页面。我想在新窗口中打开它。我知道我可以使用window.open,但我怎样才能在 navigateURL 中编写它

请帮忙

【问题讨论】:

    标签: extjs hyperlink window


    【解决方案1】:
    { id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", target: "_blank", width: 60 }
    

    【讨论】:

      【解决方案2】:

      我通过添加 "target": "_blank" 让它工作了

      { id: 'Id1', type: 'int', header: "Click me", navigateUrl: "www.google.com", "target": "_blank", width: 60 }
      

      【讨论】:

        猜你喜欢
        • 2017-11-25
        • 1970-01-01
        • 2020-12-01
        • 2017-04-12
        • 1970-01-01
        • 2015-02-09
        • 2011-10-19
        相关资源
        最近更新 更多