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

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -