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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

resize and remove headers ?

Status
Not open for further replies.

NewtownGuy

Technical User
Jul 27, 2007
146
US
Hello,

This is for a commercial application, not an annoying popup.

Here's what I'd really like to do -- have the user open his web browser to a URL that I provide, and have index.html open to a small size that I specify, and without borders, menu bar, scroll bars, etc -- as small as possible. I don't want the user to have to click "ok for popup" or something like that due to problems with OnLoad. I have a window.open script that does this IF an initial window is opened first, but I want to remove the initial window.

How do I avoid the initial window but still open to the size I want and without the header, etc. ?

Alternatively, and this is what I'm doing now, I give the user a RESIZE button to click and I use a resize script. But how do I get rid of scrollbars, menu bar, etc, in the resized (shrunk) browser window ?

Thank you.

-- NewtownGuy
 
While you can control those attributes of a popup window - you are not able to remove elements of a user's main browser window. This kind of question is similar to the "How do I disable the back button?" It is part of the browser and cannot be programmatically disabled. The same with the scroll-bars, the menu-bar, etc.

Does that make sense? I'm sorry it isn't what you want to hear.

Einstein47
There are no kangaroos in Austria!
[[]Starbase47.com]
 
Hi

Einstein47 said:
While you can control those attributes of a popup window - you are not able to remove elements of a user's main browser window.
Correct. But I would like to add two things :
[ul]
[li]You can control those attributes if the browser's owner permits. I do not permit.[/li]
[li]In the DevGuru JavaScript quick reference still mentions the related properties of the [tt]Window[/tt] object. So theoretically :
Code:
window.locationbar.visible=false
window.menubar.visible=false
window.personalbar.visible=false
window.scrollbars.visible=false
window.statusbar.visible=false
window.toolbar.visible=false
But practically only Mozillas and Safari have those properties. And although it is permitted to change their values, it has no effect. So while the browsers disabled the possibility of such manipulation, I think it is considered harmful. So I suggest to just let your visitors have their browsers as they want.
[/li]
[/ul]

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top