I am opening a popup window using the following code:

<a href="" onClick="'/gallery/upload_form.php3',
'height=360,width=620,status=1,resizable=1,top=200,left=120'); return
false; "><img src="gallery/images/bt_upload.gif" width="60" height="17"
border="0" alt="Use upload to copy your own images to the web site"></a>

My popup window then runs some PHP code and finally displays a status
message with a close window button. When the close window button is
clicked I need to close the popup window and refresh the parent window
or alternatively (preferably) just recalling the PHP script.

Here is the HTML for my popup window:

<html> <head>   <meta http-equiv="content-type"
<meta name="generator" content="Adobe GoLive 5"> <title></title> <link
rel="stylesheet" href="../master.css">
</head> <tr><br><td>The file [<b>08lg.jpg</b>]<B>Has been Successfully
uploaded to the SouthLondonKidz Website</td><body bgcolor="#ffffff"
leftmargin="50" marginwidth="0" topmargin="0" marginheight="0"
background="c:/program files/apache
<FORM METHOD="POST" ACTION = "../gallery01.php3" ><PRE><INPUT
TYPE="submit" ALIGN=LEFT VALUE="Close Window"

The action for the form is only fired if the  onClick="window.close() is
removed. My question is how can I close the window and refresh or reload
the specified window.



Reply via email to