javascript - Popup blocker IE8 and security zones -


i have read many posts regarding detection of popup blocker javascript code still have not been able find answer problem having now.

the problem when target url external website, browser (ie8) prevents access window object, or in other words javascript code window.open() returns null although popup allowed open up. in contrary, local page of site, javascript returns window object.

thus seems there security settings somewhere in internet options prevents grabbing handler of opened window; in case, know how detect javascript?

the code using follows , cannot detect situation:

var popup = window.open("http://www.externalsite.com&param1=value1", "_blank", ""); if (!popup) { alert('cannot preview page because pop-ups blocked browser'); } else { if (popup != null) { popup.focus(); } } 

if open window crosses zones , integrity levels (e.g. intranet page running @ medium opens internet page running @ low; or internet site running @ low opens trusted site running @ medium) can happen. has nothing popup blocker.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -