开发者

Disable cross button from the window.open popup

开发者 https://www.devze.com 2023-04-01 03:26 出处:网络
Disable title bar or cross buttonfrom the window.open ui:fragment rendered=\"#{not empty docProd.url}\" >

Disable title bar or cross button from the 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>

i开发者_开发问答 have tried doing many things,,but this is not working


  1. wrong syntax - this will open a window window.open('flows/Ad/test.xhtml',"_blank") - possibly with parameters window.open('flows/Ad/test.xhtml', "_blank","top=200,left=300")

  2. not possible to remove the [X] in any current browser unless you use divs

Take a look at jQuery UI dialog

0

精彩评论

暂无评论...
验证码 换一张
取 消