Opening a Window without a Titlebar

Posted on 2001-08-27
Last Modified: 2012-05-04
Is this possible, and how is it done?
That is, what feature would be set on a
Question by:Clif
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2

Expert Comment

ID: 6428949
Probably noit possible if you are talking about the title bar above the file menue. However, you can not place title infomration in there.

<script language='javascript'>
//-- This function opens the new, empty window named floater.
function openWindow() {
   if (navigator.appName.indexOf("Microsoft")>=0) {

Expert Comment

ID: 6429074
More window related code.

<SCRIPT LANGUAGE="javascript">
<!-- ('titlepage.html', 'newwindow', config='height=100,
width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,
location=no, directories=no, status=no')

Accepted Solution

kanthonym earned 100 total points
ID: 6429129

IF this does not make sense see the code examples and text at the link below.


New Window: No Title Bar
by Joe Burns, Ph.D.
Use these to jump around or read it all...

[Button Code]
[The Script]
[OnLoad the Window]

In my tutorial dedicated to opening new windows through JavaScript, I made the statement you could not open a new window that didn't have a title bar. Don't check. It doesn't say that any more.

A reader saw that statement and informed me that he knew of a method and gave me the basics. I took those steps and put together the script in this tutorial. It's a new window that opens without a title bar. The effect is created by using the open.window JavaScript along with the fullscreen code discussed in this tutorial.

Sorry to say that even though the fullscreen and JavaScript commands work in Netscape, the loss-of-title-bar effect only works in Internet Explorer. However, I've bulked up the script so that not only do you have control over the title bar, but also o over the window's size and placement on the screen. It's a neat little piece of work. Dig this:

Neat effect, eh?

Hey, did you get a scrollbar? Yeah. Me too. I have the scrollbars set to "no" but that thing still pops up. Strange, huh? If you'd like to get rid of the scrollbar too, then follow a tip given to me by Neil Brocklebank.

In the page that opens in the new window put the style command:

style="overflow:hidden" the BODY flag. Now, remember. That goes in the BODY flag of the page that is opening inside the new window, not the page that contains the script. That's real important.


Button Code
It goes like this:
<input type="button" VALUE="click me!" onClick="goNewWin()">

It's a basic FORM button that is set up to fire a function named "goNewWin()". That's about all there is to it. Let's see that script.


The Script Code
The script is inside of a function. Here it is:
<script language="JavaScript">

function goNewWin() {

// Set height and width
var NewWinHeight=200;
var NewWinWidth=200;

// Place the window
var NewWinPutX=10;
var NewWinPutY=10;

//Get what is below onto one line


//Get what is above onto one line



We start by setting four parameters:

// Set height and width
var NewWinHeight=200;
var NewWinWidth=200;

// Place the window
var NewWinPutX=10;
var NewWinPutY=10;

Good Luck!
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 10

Author Comment

ID: 6429252
Thanks for your help so far.

this is really close.  There are two problems, though.  First of all, there is a definite lag during the window opening before it gets resized.  Second, the "fullscreen" feature is (according to my documentation) only used in IE4.
LVL 10

Author Comment

ID: 6429258
I'm go9ng to go ahead and grade your answer.  It does work (at least in IE), although there is that annoying lag.

I just discovered what I was trying to do can't be done in Netscape anyway, so I'll have to try and find another plan.

Thanks for your help.

Expert Comment

ID: 6429265
Thanks, best of luck in your search. I would be very interested in any answers you find.

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Popup write two lines 3 22
DataTable column sorting incorrectly 2 22
web page freezes after ajax post 7 54
Slush on text 2 12
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

696 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question