/    Sign up×
Community /Pin to ProfileBookmark

Opening windows

I have noticed lately that using window.open (javascript) can get buggy in IE. (Sometimes browsers hang when window.open is used for the second time. (Known bug not always fixed by Service Pack 1 for IE 6.0)
So, I want to abandon as much javascript as possible. If you click a hyperlink using target=_blank is it possible to set what size the window opens and where it opens. (Funny really, if you abandon javascript, you realise what a limited interface the web is.)

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@fredmvFeb 27.2004 — I don't recall opening new windows being buggy, but if you're talking about IE that's rather understandable. Moreover, why would you want to open new windows in the first place? It is [url=http://www.diveintoaccessibility.org/day_16_not_opening_new_windows.html]inaccessible[/url] and most users find it quite annoying since they should be able to decide whether they want links to open in new windows or not.
Copy linkTweet thisAlerts:
@WebskaterauthorFeb 27.2004 — Thanks for the lesson but if you are writing a business application there are many occasions when you might want more than one window open.

The main one I have is that the 'home' page used by people using the application is incredibly complex with a lot of calculations being done to present an overview of the current state of the business. If someone wants to drill down into one of the jobs and I open it in the same window then, when they go back to previous page, it has to be reloaded placing additional strain on server resources and incurring a time delay for no reason. It is perfectly user friendly to open a new window, smaller than the main window, and put a close button on it.

My question was not whether it is a good idea to open new windows but whether it is possible using HTML to open a window with a defined size and location and without using Javascript. Opening windows using window.open is a known bug with an alleged fix on Microsoft's site.
Copy linkTweet thisAlerts:
@AdamGundryFeb 27.2004 — No, HTML cannot control any properties of the opened window. The target attribute is being phased out (it does not exist in basic XHTML), and like Fred said it should not be used. I've not heard of a window.open bug either (though it wouldn't suprise me).

Aren't your pages cached? When the user goes back from the "drilled-down" page, surely they see their local cached version and do not need to call it up again?

Adam
Copy linkTweet thisAlerts:
@WebskaterauthorMar 01.2004 — Thanks for your reply. I find the comments about not opening a new window interesting. You are obviously happy to let people use a back button to go back to a view of data that may no longer be valid. I will not allow this.
Copy linkTweet thisAlerts:
@ray326Mar 01.2004 — As stated above, the only way to control the creation of a new window is through Javascript. HTML link targets will replicate the existing window configuration.

Although I try to never open a secondary window on the same application, I also disallow the viewing of possibly invalid information via the back button by expiring problematic pages and by giving them active navigation means back up the tree so those pages can be regenerated properly for them.

(Funny really, if you abandon javascript, you realise what a limited interface the web is.)[/QUOTE]
True, but only if you expect it to replicate the UI of a client/server application. Most of "richness" of the latter I've found to be gee whiz eye candy with little relavence to the actual business process.

Not much added value here other than an "I feel your pain" expression, especially having to deal with pitiful little IE as the "corporate standard" on your intranet. Best of luck to you.
×

Success!

Help @Webskater spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...