CTRL-click? Shift-click? Configure the browser to open all links in new tabs? I'm pretty sure you can do that in Firefox.
And please don't suggest blocking mouse events. I like to use those features, and I really hate it when sites try to hijack my browser that way. It's one of the more user-hostile things you can do. On Thu, Mar 17, 2011 at 1:51 AM, Maurizio Cucchiara < maurizio.cucchi...@gmail.com> wrote: > 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 >