[ciapug] New browser window

Lathrop Preston ciapug@cialug.org
Mon, 30 Jun 2003 15:05:05 -0500


Barry Von Ahsen wrote:
> On Wed, Jun 25, 2003 at 12:51:42PM -0500, Dave J. Hala Jr. wrote:
> 
>>I'm looking for some sample code that runs a short php script, opens a
>>new browser window and displays the results...    Anyone done this
>>before?
>>
>>Anyone got any ideas?
> 
> 
> How about:
> 
> <a
> href="javascript:window.open('display_results.php','newWindow','options')">


In general the best way is use the the window.open to create the new 
window that loads the script page so the results will then display.

or have the script run and at the end pop the window to display the 
results page

Lathrop