禁用窗口中的交叉按钮.打开弹出

Disable cross button from the window.open popup

本文关键字:按钮 窗口      更新时间:2023-09-26

在窗口中禁用标题栏或交叉按钮。打开

ui:fragment rendered="#{not empty docProd.url}" >
<script>window.open('flows/Ad/test.xhtml','center', "_blank", "titlebar=0");
</script><p:commandButton value="close"/>
</ui:fragment>

我已经尝试做了很多事情,但这是不工作

  1. 语法错误-这将打开window.open('flows/Ad/test.xhtml',"_blank")窗口-可能带有参数window.open('flows/Ad/test.xhtml', "_blank","top=200,left=300")

  2. 不可能在任何当前浏览器中删除[X],除非使用div

jQuery UI对话框