How to open an html file using the default file handler and to give the window a name (i.e. target)?
Posted
by paul
on Stack Overflow
See other posts from Stack Overflow
or by paul
Published on 2010-04-26T08:08:54Z
Indexed on
2010/04/26
8:13 UTC
Read the original article
Hit count: 163
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.
© Stack Overflow or respective owner