How to hide the Title bar without "fullscreen=yes" when use window.open?

i want to open one new window with window.open,
but i don't want to see the title bar, and i can set the left, top, width, and height, etc.

how to do ?

thanks.
kanelklAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
mvan01Connect With a Mentor Commented:
kanelkl,

Michel is right.  My "title=false" was old info.  HTA is the way to go.

http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/methods/open_0.asp

Here's some code.  Save it in a file named with an extension of .hta to give it access to the special HTA features.

mvan

<HEAD>
  <TITLE>My Monster Application</TITLE>
  <HTA:APPLICATION ID="oMyApp"
    APPLICATIONNAME="monster"
    BORDER="none"
    CAPTION="no"
    ICON="/graphics/creature.ico"
    SINGLEINSTANCE="yes"
    WINDOWSTATE="maximize">
</HEAD>
<BODY>
CAPTION="no" is the key to no title bar<br>
<br>
Press [Alt]+[F4] to end (no Minimize, Maximize, nor Close buttons!).
</BODY>
0
 
kanelklAuthor Commented:
i use "titlebar=no", but can't hide the titlebar.
0
 
mvan01Commented:
Hi kanelkl,

should be:

Netscape Navigator (4 & newer):
  window.open("url", "windowName", "titlebar=false");
IE (5 & newer):
  window.open("url", "windowName", "title=false");

This feature, in Navigator 4+, requires a signed script.

mvan
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
kanelklAuthor Commented:
mvan:
thanks very much.

i used "title=false", but the title bar is showing.

i use windows and ie5,ie6.
0
 
kanelklAuthor Commented:
here i have a way.

var o = window.open("","","");
o.moveTo(0,-24);
o.resizeTo(1024,788);

if you have any other better ways, please tell me .

thanks.
0
 
Michel PlungjanIT ExpertCommented:
You cannot turn off the title bar unless you
1. sign the script in gecko based browsers
2. use HTA in IE

Michel
0
 
mvan01Commented:
This doesn't actually open a new window, it simply changes the window into which it is opened.  There are warnings and restrictions if HTA files are run from a server.

mvan
0
 
mvan01Commented:
Send that filename.hta as a url in window.open("url").  If you leave out WINDOWSTATE="maximize", it need not be fullscreen.  You also don't need ICON="/graphics/creature.ico" - of course.  Then you have an essentially floating window, without borders, titles, etc.  If you sized it right and had the .hta load a graphic image, it could look very similar to a 'splash screen' of the major software folks.  You'd want to be sure to window.close() it from the JavaScript that opened it - I doubt the average user would guess [Alt]+[F4].

As noted, there are warnings and restrictions, even if you run the thing from your own local drive.

Peace and joy.  mvan
0
All Courses

From novice to tech pro — start learning today.