Jump to content

[SOLVED] how to open new window


jbooth952

Recommended Posts

in pure html you open a page in a new window using the "target" parm.

 

You can go directly to a new page using the "header()" function, but how do you use the "header()" function to open a new window?

 

IOW, within a PHP script, how do you open a page in a separate window?

Link to comment
https://forums.phpfreaks.com/topic/124388-solved-how-to-open-new-window/
Share on other sites

Opening a new window is a client side operation, not server side. So you'll have to use JavaScript to open the new window

 

Yes, but - header("Location: http://somewhere.com") is sent to the browser and has it go to that location. Can't you include some parm that tells it that new location should also be a new window?

Yes, but - header("Location: http://somewhere.com") is sent to the browser and has it go to that location. Can't you include some parm that tells it that new location should also be a new window?

 

As you have just said, 'header' is 'SENT' to the browser. Opening a new window on the client machine has to be done on the client side

Yes, but - header("Location: http://somewhere.com") is sent to the browser and has it go to that location. Can't you include some parm that tells it that new location should also be a new window?

 

As you have just said, 'header' is 'SENT' to the browser. Opening a new window on the client machine has to be done on the client side

 

Duh,  :-[ (slap myself in the head), I get it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.