How to pop out a Firefox window without an address bar or status?

前端 未结 2 1900
长情又很酷
长情又很酷 2021-01-24 20:04

How to pop out a Firefox window without an address bar or status, basically what i need is a bar minimum window that renders my html.

相关标签:
2条回答
  • 2021-01-24 20:42

    As far as I know, it's possible in neither Firefox nor Internet Explorer any more for security reasons.

    If you're building a web application, you could try Mozilla Prism:

    Prism is a simple XULRunner based browser that hosts web applications without the normal web browser user interface. Prism is based on a concept called Site Specific Browsers (SSB). An SSB is an application with an embedded browser designed to work exclusively with a single web application. It doesn’t have the menus, toolbars and accoutrements of a normal web browser.

    If you need to serve web pages to the public, it's not for you, though. It needs client-side installation.

    0 讨论(0)
  • 2021-01-24 20:49

    You can do it like this:

    <a href="#" onclick="window.parent.open( 'http://www.google.com',
        '','toolbar=0,location=0,directories=0,status=0,menubar=0,' +
        'scrollbars=yes,resizable=yes,width=400,height=300').focus();
        return false;">
    Open Window
    </a>
    
    0 讨论(0)
提交回复
热议问题