How to Disable pop up blocker using java script or PHP?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
arupgarai2004
Forum Newbie
Posts: 2
Joined: Thu Nov 22, 2007 1:30 am

How to Disable pop up blocker using java script or PHP?

Post by arupgarai2004 »

How to disable pop up blocker using java script or PHP

Arup Garai
deadoralive
Forum Commoner
Posts: 28
Joined: Tue Nov 06, 2007 1:24 pm

Post by deadoralive »

you can't - and that's a good thing
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Post by Rovas »

deadoralive wrote:that's a good thing
I agree with you.
You can put a message in the page when the pop- up is blocked that pop- up is important using js to detect that is blocked.
You can make a div that substitutes the pop- up using some simple css properties and a little javascript use this as an example.
This method has many tutorials use Google.
arupgarai2004
Forum Newbie
Posts: 2
Joined: Thu Nov 22, 2007 1:30 am

Post by arupgarai2004 »

are sure its not possible ?
any way any how .

and my requirement is only pop up . div not accepted

please help me
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

you can not override a browsers default behaviour using javascript or PHP. This would be a super security problem.

Imagine if you could use javascript to start reading cookies from different domains other than yours. What about getting peoples sessions ids? No, you can't override a browsers settings with your code.

If this is not popping up an advert or something then there is another way to do the same thing without the blocker blocking you so just take a look at those.
Post Reply