I am writing a warm-up script for a SharePoint server. The idea is to call stsadm and then open an html file containing iframes which touch all the key web pages in my portal.
So far so good. The problem is that each time the script is run, a new browser window is opened and I end up with a screen full of browsers.
The first idea was to close the browser after 10 minutes or so. This would be easy to do except that Javascript is disabled when an html file is opened from the file system. I then thought I might be able to open the file and set it in a named window (target) which would be reused each time the script runs but I haven't found any way to do this.
Does anyone have any ideas? Either to force JS to run or to set the window name or another solution?
Thanks.