从 window.open 中禁用标题栏或十字按钮
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>
我尝试过做很多事情,但这不起作用
最佳答案
语法错误 - 这将打开一个窗口
window.open('flows/Ad/test.xhtml',"_blank")
- 可能带有参数window.open( 'flows/Ad/test.xhtml', "_blank","top=200,left=300")
除非使用 div,否则无法在任何当前浏览器中删除 [X]
关于javascript - 从 window.open 弹出窗口中禁用十字按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7254156/