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! |
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. |
|
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. |