[dev] javascript

Joris Braakman jorisb@nl.euro.net
Thu, 2 Aug 2001 10:27:42 +0200


On Wed, Aug 01, 2001 at 09:33:15PM -0500, mailling@bigfoot.com wrote:
> I think it would be interesting to have some functions to: (in javascript)
> - open a popup
> - close a popup
> - make a redirection
> 
> Theses functions are used pretty often in IMP, so we could define an API 
> for that?
> I was hesitation between putting these functions in the Browser.php file or 
> create a new file
> Capability.php that would be a factory of a Javascript class if Javascript 
> is enabled.
> 
> What do you think?

I think that popups are evil.

Why? They break the normal browsing behavior. The back button doesn't
work any more for one. The user suddenly without asking gets a new window. 
In the latest browsers there are even options to stop the javascript
openwindow function. Now that must tell you how hated popups are. 

So I am all for functions for popups, if that makes it is easyer to disable
them.

Regards, Joris.