开发者

Disable cross button from the window.open popup

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜