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

sql - text truncated using perl DBI insert -

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

php - Pass object by reference or value -