I\'m making a website where I\'m opening a new window every 30 seconds. I got it to open the new windows properly, but I would like it to close the last window opened before ope
You can close a window opened by calling window.close on window.open's return value. So: