簡體   English   中英

禁用window.open彈出窗口中的交叉按鈕

[英]Disable cross button from the window.open popup

禁用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>

我嘗試過很多東西,但這不起作用

  1. 錯誤的語法 - 這將打開一個窗口window.open('flows/Ad/test.xhtml',"_blank") - 可能帶參數window.open('flows/Ad/test.xhtml', "_blank","top=200,left=300")

  2. 除非使用div,否則無法刪除任何當前瀏覽器中的[X]

看看jQuery UI對話框

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM