Why would you track a window open event?
I don't know what exactly your requirements are but I think it should be
quite simple to /intercept/block/change every mouse click event which is
not  the left click event through javascript.

Maurizio Cucchiara

Il giorno 16/mar/2011 22.26, "Wes Wannemacher" <w...@wantii.com> ha scritto:
Does anyone know of a good trick to detect whether a new window or tab
was opened by the user...

Here is the scenario, a user is looking at a view and he/she
right-clicks one of the links and chooses to open the link in a new
tab or window. The original view and the new tab or window will share
the session, but I'd like to know that there are two windows (or tabs)
interacting with the site.

I thought about trying to track the referrers as requests come in, but
I get stumped when I realize that a user can re-visit a page.

There are some javascript mechanisms, but by the time I can detect
from javascript that a window is new, the response is already being
rendered (committed).

Here is one link I found, but the code is poorly formatted making the
example difficult to follow -

https://sites.google.com/site/sarittechworld/track-client-windows

-Wes

--
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to