5 replies [Last post]
Alan
Offline
Enthusiast
Last seen: 16 years 49 weeks ago
Joined: 2003-10-20
Posts: 72
Points: 0

Hi there,

Consider this situation. You have a web page with a bunch of thumbnails on it. Clicking on each thumbnail links directly to a fullsize JPG image.

Now, is it better for this fullsize JPG to open in:

- the SAME browser window, replacing your web page, or...
- in a NEW browser window, so that your web page remains on screen.

Tags:
Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 37 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Opening New Windows - Good or Bad?

Well this is meant really to be a consideration for the user and of the UI rather than the developer, hence the deprecation of " target blank"
in xhtml as it is now not considered to be something that the x/html code should be dealing with.
A lot of novice internet users get panicked by new windows spawning, supposedly, spontaneously and it confuses them when they have multiple windows open on their machine. My view is that it is better to have things remain in the same window as it seems most people do understand the use of the "back button" .

Stu has some nice examples of a photo gallery that may be of interest.

http://www.stunicholls.myby.co.uk/menu/gallery.html

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Alan
Offline
Enthusiast
Last seen: 16 years 49 weeks ago
Joined: 2003-10-20
Posts: 72
Points: 0

Opening New Windows - Good or Bad?

Thanks for your reply Hugo,

Yes, I think I agree. It's better to keep everything within one browser window. While there are some advantages to opening new windows, juggling two windows is something for the experienced user. Basic users are confused when a new window opens, and don't know how to get back to the original window.

roytheboy
roytheboy's picture
Offline
Guru
North Wales, UK
Last seen: 7 years 9 weeks ago
North Wales, UK
Timezone: GMT+1
Joined: 2004-09-18
Posts: 2233
Points: 41

Opening New Windows - Good or Bad?

...all of the greater issues notwithstanding, you could use a new window but include a very obvious 'click here to close this window' javascript link. This is what I do for things like 'Terms' pages that people might want to review half-way through filling in an order form.

Life's a b*tch and then you die!

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 5 years 37 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Opening New Windows - Good or Bad?

roytheboy wrote:
...all of the greater issues notwithstanding, you could use a new window but include a very obvious 'click here to close this window' javascript link. This is what I do for things like 'Terms' pages that people might want to review half-way through filling in an order form.


Good point, and have used Javascript to pop up a window that is clearly unlike a normal browser window, stripped of all but basic menu bar features and smaller than main browser with as you say a clear "close window" text or button which goes someway to avoiding the confusion of multiple cloned windows.

Hugo.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me

Alan
Offline
Enthusiast
Last seen: 16 years 49 weeks ago
Joined: 2003-10-20
Posts: 72
Points: 0

Opening New Windows - Good or Bad?

That Javascript method sounds good. But how does it cope with images of different sizes? Can the same Javascript code be called upon to open images of different sizes, in a new toolbar-less browser window?