Possible Duplicate:
How can I detect if a browser is blocking a popup?
I want to open a new window (onclick) to a page on Facebook (facebook.com/sharer.php).
However, if this fails due to pop up blockage, I want to detect it and change it to a link instead (new tab).
How can I do that?