如何在Javascript弹出窗口中隐藏标题栏? [英] How to hide title bar in Javascript popup?

查看:193
本文介绍了如何在Javascript弹出窗口中隐藏标题栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我无法从我的javascript弹出窗口隐藏标题。

我使用以下代码,

Hello i m unable to hide the title from my javascript popup.
I m using the following code,

window.open("","huh","width=320,height=210,scrollbars=no,toolbar=no,screenx=0,screeny=0,location=no,titlebar=no,directories=no,status=no,menubar=no");





有人可以帮帮我吗?

提前致谢



Can someone help me out?
Thanks in advance

推荐答案

titlebar = {yes |没有| 1 | 0}

指定是否显示窗口的标题栏。默认值为是。



Internet Explorer 5.5及更高版本。不再支持此功能。标题栏仍然可见除非全屏sFeature处于活动状态。



因此,您需要:

fullscreen = {yes |没有| 1 | 0}

指定是否以全屏模式显示浏览器。默认值为no。仔细使用全屏模式。由于此模式隐藏了浏览器的标题栏和菜单,因此您应始终提供一个按钮或其他可视线索,以帮助用户关闭窗口。 ALT + F4关闭新窗口。



详情请阅读:

Window.open方法 [ ^ ]
titlebar = { yes | no | 1 | 0 }
Specifies whether to display a Title Bar for the window. The default is yes.

Internet Explorer 5.5 and later. This feature is no longer supported. The Title Bar remains visible unless the fullscreen sFeature is active.

Thus, you need:
fullscreen = { yes | no | 1 | 0 }
Specifies whether to display the browser in full-screen mode. The default is no. Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 closes the new window.

For full details read here:
Window.open Method[^]


保留titlebar = no,如果它不工作,那是因为浏览器不支持它或者浏览器的设置已设置为始终显示标题栏。用户可以控制他们的浏览器体验,而不是代码,所以如果这些东西不起作用,他们就无法工作,你就无法做任何事情。您可以看到对话框模式是否可以执行您想要的操作。
Leave titlebar=no and if it's "not working" it's because the browser doesn't support it or the browser's settings have been set to always show the title bar regardless. It is up to the user to control their browser experience, not your code, so if these things aren't working they aren't working, you can't do anything about it. You could see if "dialog" mode will do what you want.


这篇关于如何在Javascript弹出窗口中隐藏标题栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆