Hi,
It it stands the coding refreshes a pop-up window bringing it to the front with the SAME content.
However, I wish to click on a DIFFERENT link that refreshes the same pop-up window but with the NEW content. This means it is always the same pop-up window open regardless of the content.
Can anyone help? The existing code is below.
Thanks in advance.
<script>
<!–
var gmyWin=null;
function myOpenWindow(winURL, winName, winFeatures, winObj)
{
var theWin;
if (winObj != null) {
if (!winObj.closed) {
winObj.focus();
return winObj;
}
}
theWin = window.open(winURL, winName, winFeatures);
return theWin;
}
//–>
</script>
<table class=”tracking”>
<tbody>
<tr>
<td>No</td>
<td>Description</td>
<td>Created</td>
<td>Status</td>
</tr>
<tr>
<td><div style=”enquiry-detail”><a href=’javascript:;’ onClick=’javascript:gmyWin=myOpenWindow(“enquiry-1.html”,”myWin”,”height=600,width=600″,gmyWin);return false’>123456</a></div></td>
<td>Brief description</td>
<td>14-1-15</td>
<td>Closed</td>
</tr>
<tr>
<td><div style=”enquiry-detail”><a href=’javascript:;’ onClick=’javascript:gmyWin=myOpenWindow(“enquiry-2.html”,”myWin”,”height=600,width=600″,gmyWin);return false’>123457</a></div></td>
<td>Brief description</td>
<td>14-1-15</td>
<td>Closed</td>
</tr>
</tbody>
</table>