LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php open in a new window (https://www.linuxquestions.org/questions/linux-software-2/php-open-in-a-new-window-124619/)

spank 12-10-2003 12:22 PM

php open in a new window
 
I want to modify a php to open (on the push of a button) to open its content in a new window. how can I do that ?
(i have squirrelmail and on the push of the login button i want the content of the mailbox to open in a new window)
thank you!

Saraev 12-11-2003 06:25 PM

I don't think PHP will do that on it's own, you need to include some javascript for it.


<!-- Begin
function popUpLogin(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,lo
cation=0,statusbar=0,menubar=0,resizable=1,width=200,height=200,left = 100,top =
100');");
}

Then call it with <a href="javascript:popUpLogin('/filename.php')">

edit:
For the record, I nicked this off the web somewhere, but the owner's web page seems to be long gone.

spank 12-12-2003 06:01 AM

http://www.linuxquestions.org/questi...hreadid=124665

nephilim 12-12-2003 06:05 AM

Your question has already been answered in the thread above (a thread that you started yourself).

I don't know why you are double posting.


All times are GMT -5. The time now is 02:19 AM.