Click here to Skip to main content
15,303,572 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello i m unable to hide the title from my javascript popup.
I m using the following code,
JavaScript
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
Posted
Updated 6-May-10 20:38pm
v2

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[^]
   
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.
   
Comments
Richard Deeming 15-Oct-15 10:43am
   
This is a question from 2010. It's only appeared in the recent list because of the non-answer posted as solution #3.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900