Opening Javascript PopUp from within PHP Code

R

Raffi

Hi folks,

I've been trying to do this for days without success.

Is there a way to open a popup window from within the php code?

Example:

if (some_condition) {
open a popup page and load a file in it
break;
}

Thanks,

Raffi
 
T

Thomas 'PointedEars' Lahn

Raffi said:
I've been trying to do this for days without success.

Is there a way to open a popup window from within the php code?

Not really. Server-side PHP scripts can only generate code that will later
be executed by the client-side JS engine. However, you should forget about
such unrequested popups since the new Windows XP Service Pack 2 makes IE to
block them by default. Other UAs have provided other means to block them
long since as they are mostly undesired.


F'up2 php.general

PointedEars
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,472
Messages
2,571,834
Members
48,802
Latest member
shadowoftheunknown
Top