Content-type: text/html Downes.ca ~ Stephen's Web ~ Controlling Browsers with JavaScript?

Stephen Downes

Knowledge, Learning, Community

Sept 10, 1999

Posted to WWWDEV 10 September 1999

Rick Eckel wrote:

Regarding-> Even if it IS possible, I would suggest that you reconsider doing the browser-trick for the following reason: You risk alienating the visitors to your site: personally I hate when someone messes with my browser, or opens pop-up windows that I did not ask for (when I enter or leave a site).

I agree. Usability studies by Jakob Nielsen and others show that users take the quickest possible exit route from sites that take away their navigational control.

For readers' information, Jakob Nielsen's site is called UseIt.Com (http://www.useit.com/) and is recommended for its useful and regular usability reports.

That said - whether or not you launch a pop-up window, and whether or not you disable browser controls, really depends on what you are trying to do. There are many occasions - especially in online learning - where the technique may be appropriate.

It is worth keeoing in mind that usability studies applied to standard commercial websites do not always apply to online courses. For one thing, online students are a lot less likely to simply leave the site. And for another thing, online students are probably more willing to allow the site to take control of the browser.

For example: suppose you want to create glossary or items or definitions for key words in an instructional page. A little popup window is the best way to do this - it doesn't interrupt the flow of the page, doesn't pose the risk of getting the student lost, and thus is more likely to be used. Since it's a small window, you would want to disable the controls, using aonly a Javascript window.close() function to allow students to exit.

An argument might be made for full-screen disabled browsers if you want to standardize all your navigation and other options. Writing separate instructions for each type of browser is a pain, and also, leads to the possibility of error. Additionally, browsers have many options (such as: turn off Javascript, override page defaults, set cache to 1,000,000) which you may not want students to mess with.

A control-less browser can be used to standardize and simplify the set of controls available to the user. It also greatly increases the size of screen space available for display, especially on 640x480 computers. I have used control-less browsers in a variety of circumstances: as a page reader for online text, as the window for the students' online notebook, and more.

So, while I agree that your college home page should probably not pop up a control-less browser, and if you're running a commercial site, you should keep the popups to a minimum. But where you are dealing with a specialized audience which may need a variety of separate applications, and where you want to keep things simple for readers, control-less popups are the way to go.

Also... posted September 9, 1999 to WWWDEV and worth including here:

Pete MacKichan wrote:

My first page is a general sort of welcome page. When I go to the second page I want to take control of the browser and get rid of toolbars, buttons etc.

How can I do this?

At the moment, the only way I can get it to work is using a function to open a new window for page 2 and close the current one. This is not nice because there a dialogue box pops up asking the user if they really want to close the window - something I think will confuse the user. There is also the small problem that the new window does not start maximised.

I don't believe you can do this without launching a second window. My recommendation is to launch the second window, bringing it in focus(), but do not close the first window; just leave it in the background.

I have a script which does this (and removes toolbars, etc) at http://www.atl.ualberta.ca/downes/java/newwindow.htm

If you want the new window to maximize to screen size, use Javascript code to detect the user's screen size. I have a separate script which does this at http://www.atl.ualberta.ca/downes/java/populfull.htm

These, I think, are as neat as it gets.



Stephen Downes Stephen Downes, Casselman, Canada
stephen@downes.ca

Copyright 2024
Last Updated: Dec 15, 2024 4:38 p.m.

Canadian Flag Creative Commons License.

Force:yes