OM The Eternity
OM The Eternity

Reputation: 16244

how to make javascript popup unblocked in any browser without user interference?

I have used popup at many places in my website (its in PHP with Mysql DB and lots of javascript). These are mostly been blocked my browsers, which restricts user to move ahead. what should do in my code so that my popups becomes Popyp blocker independent..

Upvotes: 0

Views: 4200

Answers (3)

Moncader
Moncader

Reputation: 3398

Make sure your popups's URL is on the same domain as the main site. Using a link with 'target="_blank"' will never get blocked unless it was manually blocked as the user did the action himself. Switch to alerts and prompts instead of popups.

Upvotes: 1

jknair
jknair

Reputation: 4774

Use Jquery Dialogs http://jqueryui.com/demos/dialog/ they are purely javascript and so popup blockers will not block this

Upvotes: 4

pinichi
pinichi

Reputation: 2205

Not a direct answer but may be Floating div is a good replacement. Build a js dialog box.

Upvotes: 0

Related Questions