I'm very interested in your second example with the $ ("a.external").click... how would you do a similar thing when submitting a form? I'm actually calling click() on a <input type="submit"/>
Thanks :) Geoff On Aug 14, 7:09 am, SeViR <[EMAIL PROTECTED]> wrote: > Geoff escribió:> My aim is not to disable the pop up blocker, just to check > if it is > > present and show an error or notification to the user. Its not a pop > > up, its opening an external website in a new window / tab. > > > Thanks! > > Popup blockers treats any window.open as popup in some cases: > > If the popup is not open with a user interaction ($("a").click is a > valid example). > In this cases, if you open a new window in "load" or "ready" method, the > popup > blocker detects a popup and blocks. > > But we have a simple method for to detect a popup block and notice the user: > > var mywindow = window.open(....); > if (!mywindow){ > alert("A popup blocker has been detected, please click the link for > to open the new window.");} > > $("a.external").click(function(){ > window.open(this.href,...); > return false; > > }); > > On Aug 13, 7:44 pm, "Tane Piper" <[EMAIL PROTECTED]> > > wrote: > > -- > Best Regards, > José Francisco Rives Lirola <sevir1ATgmail.com> > > SeViR CW · Computer Design > http://www.sevir.org > > Murcia - Spain