I'd like to put some hypertext in my page allowing me to open a new navigator window showing a determined page (e.g.: www.yahoo.com). So I attached the following line to my HTML code:
<br><b><a href="javascript:openWin('http://www.yahoo.com')">Open a new naviagator showing yahoo </a></b>
With the folowing function :
function openWin(myurl)
{
var props = 'scrollBars=yes,resizable=yes,toolbar=no,menubar=yes,location=no,directories=no,width=300,height=200';
newWindow = window.open(myurl, 'window1', props);
}
But I also want to be able to close this new navigator window automatically after a given time (let's say 10 minutes).
I tried to use the function window.close, but it always closes my first page and not the new navigator page.
Is it possible to close this new navigator page ? How can I do it ?
Thanks