I have a new smaller window pop up when someone clicks on a thumbnail image on my page. I do this by using the following code:
<a target="_self" onclick="window.open('directory/largerimage1.jpg','window1','scrollbars=yes,width=200,height=200')"
href="samepage.htm"><img src="directory/thumbnailimage1.jpg" WIDTH="60" HEIGHT="60">
I would like to know how to get this window to self close after a specified time so that they do not end up having a number of windows open after clicking on the various thumnails present.
I found answers saying to place Java Script in the new window telling it to self close after X seconds. However since my new window points only to an image file (jpg or gif) there is no html in the new window containing the <head> tag nor a <body> tag, just a directory/image.jpg. Please help me I am not html savvy but trying my best to understand what I need to to get this page done soon. Help.