开发者

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

开发者 https://www.devze.com 2023-01-01 12:33 出处:网络
How to pop out a Firefox wind开发者_开发技巧ow without an address bar or status, basically what i need is a bar minimum window that renders my html.As far as I know, it\'s possible in neither Firefox

How to pop out a Firefox wind开发者_开发技巧ow without an address bar or status, basically what i need is a bar minimum window that renders my html.


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.


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

精彩评论

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