"access Is Denied" By Executing .hta File With Jscript On Windows Xp X64
I have a simple HTML (as HTA) application that shows strange behavior on Windows XP x64 machine. I getting periodically (not every time) error message 'Access is denied.' when I st
Solution 1:
Try adding a try catch around the startup code
try
{
window.resizeTo(500, 300);
} catch(e) { }
Alternatively try setTimeout:-
setTimeout(function() {
window.resizeTo(500, 300);
}, 100);
Solution 2:
Just a quick word for anyone who passes here I've run into a similar problem (mine is when the document is already loaded) and it is due to the browser not being ready to perform the resize/move actions whether it is due to not finishing loading or (like in my case) when it is still handling a previous resize request.
Solution 3:
With both delay and try-catch:
setTimeout(function() {
try {
window.resizeTo(500, 300);
}
catch(e) { }
}, 100);
Post a Comment for ""access Is Denied" By Executing .hta File With Jscript On Windows Xp X64"