javascript - How do I detect that my pop-up window failed (due to a pop-up blocker)? -
possible duplicate:
how can detect if browser blocking popup?
i want open new window (onclick) page on facebook (facebook.com/sharer.php).
however, if fails due pop blockage, want detect , change link instead (new tab).
how can that?
if(!window.open()){ //pop failed. }
Comments
Post a Comment