Forum Moderators: open

Message Too Old, No Replies

Opening a window without the menubar and toolbar

How to open this window from index.php (or index.html)

         

itKiwi

9:53 pm on Jan 7, 2007 (gmt 0)

10+ Year Member



Using javascript, I understand how to open a pop-up window without the menubar and toolbar, but how do I get my main window to open without the menubar and toolbar? My server side language will be PHP, and I want my window without the menubar and toolbar to open from the index.php (or index.html) file.
Maybe I'm in the wrong forum?
Thanks

cmarshall

12:51 am on Jan 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



but how do I get my main window to open without the menubar and toolbar?

Please, PLEASE don't do it!

Any site I hit that pulled that on my main window would be immediately reported to WPTS.

What most sites do to accomplish this is open large popups.

Even so, browsers like Firefox give you the option of overriding this.

itKiwi

11:50 pm on Jan 8, 2007 (gmt 0)

10+ Year Member



Thanks, cmarshall.

Message received, but not entirely understood. Please excuse a few questions.

Why is my "idea" so bad, if my custom window provides the user with all the features needed, in some other way?

Would you still have this strong "anti" feeling if my custom window was in an intranet?

What is it exactly that Firefox can override? It sounds like a bit more than "Javascript On/off".

If the client's main browser window is already fairly big, say half screen wide, full screen height, (but this is an unknown, not under my control), can I reduce the size of this main window (without closing it), so that I can be sure my pop-up window will completely cover the main window?

I have seen this site,

<snip>

I imagine this site really gives you the shivers ;-) However, I would like to be able to build something similar (perhaps not quite so ambitious) for my intranet. Any ideas or alternatives?

Thanks for time.

[edited by: encyclo at 10:39 pm (utc) on Jan. 18, 2007]
[edit reason] no URLs please see TOS [webmasterworld.com] [/edit]

cmarshall

11:46 pm on Jan 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Intranet, you can do whatever you want. Just remember that your users know where to find you. I run our development Wiki, and get the front-line calls when I goof.

The problem with messing with the main window is that it can LEAVE the window messed up for the next site. What some sites do, and it makes me want to strangle their designers, is put up a massive popup over top of the main window, and take all the goodies out of that window. This can easily be mistaken for the main window, and you start trying to continue the navigation in that messed-up window, sometimes with their site happily tracking what you do next through JavaScript. I'll lay odds pr0n sites use this technique to some pretty nasty ends.

I'm pretty sure that they do this because JavaScript won't let you mess with the main window, so they try to push the main window out of the way and get you to use the new window as a main window.

From an accessibility and usability point of view, messing with the main window is akin to taking the steering wheel out of a moving car. It ain't gonna make you any friends.

cmarshall

12:31 am on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Oh, yeah, as for Firefox, you should get it yourself [mozilla.com] and try it out. Its standard settings will prevent scripts from messing with the window position/size and status bar.

After you get it, type "about:config" in the URI bar, and see what else you can tweak.

I can always click on the "header" button and get a toolbar, even if they turned it off in the script. Unfortunately, I don't also get a resize handle if they made the window fixed size, so I will push the content out of the window.

jdMorgan

1:08 am on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



cmarshall,
Simply set dom.disable_window_open_feature.resizable true in about:config to override non-resizeable windows.

You can also type "DOM" into the about:config filter to see all of the other "JS window features" you can block or modify - basically all of them.

itKiwi,
People are simply tired of having their browser windows tinkered with. Modern browsers increasingly include settings like the one mentioned above, and no JS can mess with properly-configured Mozilla-based browsers any more. The browser chrome belongs entirely to the user, not the Webmaster.

Non-resizeable, non-scrollable, chromeless windows are about to meet the same sticky fate that has already befallen popups. And it was not that popups and chromeless windows were inherently bad, it's just that they were over-used and used in bad taste, and the user base grew tired of them. So now, they're gone or well on the way out.

Also, now that IE7 has officially adopted the tabbed browsing model, people expect their tabbed/non-tabbed browsing preferences to be honored. So opening another window may no longer be an option.

Jim

cmarshall

2:24 am on Jan 19, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Simply set dom.disable_window_open_feature.resizable true in about:config to override non-resizeable windows.

You can also type "DOM" into the about:config filter to see all of the other "JS window features" you can block or modify - basically all of them.

Kewl! Thanks! I love FF!