Re: Valid auto-invocation events

On Sep 6, 2011, at 14:21 , Anne van Kesteren wrote:
> On Tue, 06 Sep 2011 13:52:21 +0200, Robin Berjon <robin@berjon.com> wrote:
>> [...]
> 
> <input>.click() and window.open() are not events.

Sorry if I wasn't clear, I didn't say that they were. Whether you can call them successfully however does depend (in many cases) on user-initiated behaviour. Otherwise, popups get blocked, the file dialog doesn't show, etc.

> For window.open() I believe HTML uses http://www.whatwg.org/C#allowed-to-navigate which is also used for setting window.location. There might be some other conditions as well.

Those are not the conditions we've been looking for.

-- 
Robin Berjon - http://berjon.com/ - @robinberjon

Received on Tuesday, 6 September 2011 14:07:25 UTC