ruudvansoest
11-12-2002, 09:14 PM
I have written a popup function that receives values for page, name and dimensions from the calling page and then opens a new window. This is it:
function newWindow(page, name, dimensions) {
newWindow = window.open(page, name, dimensions);
}
This function is called via a link on the calling page. This is it:
<a href="javascript:newWindow('isola-luchtfoto-in-venster.htm', 'nieuw', 'width=666,height=427')"><img src="images/pijltje.gif" width="14" height="14" align="absmiddle" border="0"></a>vergroting
This works fine: I click the link and the popup window opens fine. After that, I close the new popup window via the x-icon on the right top of the window - everything still fine, no problem at all.
But then!!! If I click the calling link again the popup window refuses to open. In stead, there appears a message on the status line: error in page. !!!
When I refresh the browser window (F5) everything works fine again. Strange.
Question: what is happening and how do I get the function to work correctly?
Thanks,
Ruud
function newWindow(page, name, dimensions) {
newWindow = window.open(page, name, dimensions);
}
This function is called via a link on the calling page. This is it:
<a href="javascript:newWindow('isola-luchtfoto-in-venster.htm', 'nieuw', 'width=666,height=427')"><img src="images/pijltje.gif" width="14" height="14" align="absmiddle" border="0"></a>vergroting
This works fine: I click the link and the popup window opens fine. After that, I close the new popup window via the x-icon on the right top of the window - everything still fine, no problem at all.
But then!!! If I click the calling link again the popup window refuses to open. In stead, there appears a message on the status line: error in page. !!!
When I refresh the browser window (F5) everything works fine again. Strange.
Question: what is happening and how do I get the function to work correctly?
Thanks,
Ruud