Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New window without toolbars 1

Status
Not open for further replies.

chrisparr21681

Programmer
Nov 18, 2002
17
GB
I need to open a new window without the address bar or any toolbars or navigation bars at the top....any suggestions?
 
Try this:

[tt]
var the_win = window.open(" "my_win", "status=0,toolbar=0,location=0,menubar=0,directories=0");
[/tt]

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
(that's JavaScript, by the way)

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
Just add the 'resizable' property.

[tt]
var the_win = window.open(" "my_win", "status=0,toolbar=0,location=0,menubar=0,directories=0,resizable=1");
[/tt]

*cLFlaVA
----------------------------
A pirate walks into a bar with a huge ship's steering wheel down his pants.
The bartender asks, "Are you aware that you have a steering wheel down your pants?"
The pirate replies, "Arrrrr! It's driving me nuts!
 
Incidentally, if you specify anything for the third parameter, JS only needs to be told what features you would like, so you don't need to specify the features you do not want... So this will also work:

Code:
var the_win = window.open("[URL unfurl="true"]http://www.google.com/",[/URL] "my_win", "resizable=1");

Hope this helps,
Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top