Click to See Complete Forum and Search --> : Disabling Window Title


Chris Jacks
02-06-2003, 10:45 PM
With a javascript pop-up window, is it at all possible to completely remove the title bar, including the minimize, resize and close buttons?

If not, is it possible to disable the minimize button?

I have successfully disabled the resize button, and I'm happy for the close button to be there.

Dan Drillich
02-06-2003, 11:00 PM
From "JavaScript the definitive guide" -

The third optional argument to open() is a list of features that specify the window size and GUI decorations. If you omit this argument, the new window is given a default size and has a full set of standard features: a menu bar, status line, toolbar and so on. On the other hand, if you specify this argument, you can explicitly specify the size of the window and the set of features it includes.


Please try -

<html><head><title>Getting and using a window reference</title>
<script language="JavaScript">
<!-- hide me

// open a new window and get a reference to it
var new_window = window.open("http://www.iwon.com","html_name","width=200,height=200");


// show me -->
</script>
</head>
<body>

<h1>A new window has been opened and moved to the background.</h1>
<a href="#" onMouseOver="new_window.focus();">Bring it forward</a><br>
<a href="#" onMouseOver="new_window.blur();">Close it</a><br>


</body>
</html>