J
John Mack
Intermittently I get the following error on Firefox:
"Error: uncaught exception: Permission denied to get property
HTMLDocument.window"
What can cause this error? I do an image switch via JS just before
redirecting the page (also via JS), could this be the problem - not
giving enough time to do the image switch before redirecting?
Pieces of the page I created that generated this error are below. The
page basically swaps an image on the page with a new one when a user
clicks on a link before the link is followed.
<script>
function userSelectedChoice() {
var pickIMG = "";
pickIMG = new Image();
if (document.images){
pickIMG.src = "choice1.gif";
document.images.manualpick.src = pickIMG.src;
}
this.location = someURL;
}
<script>
<body>
{user clicks on an <a href="javascript:userSelectedChoice()...>, the
above JS
gets executed, the <img> below is swapped out before page reloads}
<img src="default.gif" alt="-" name="manualpick" id="manualpick">
</body>
"Error: uncaught exception: Permission denied to get property
HTMLDocument.window"
What can cause this error? I do an image switch via JS just before
redirecting the page (also via JS), could this be the problem - not
giving enough time to do the image switch before redirecting?
Pieces of the page I created that generated this error are below. The
page basically swaps an image on the page with a new one when a user
clicks on a link before the link is followed.
<script>
function userSelectedChoice() {
var pickIMG = "";
pickIMG = new Image();
if (document.images){
pickIMG.src = "choice1.gif";
document.images.manualpick.src = pickIMG.src;
}
this.location = someURL;
}
<script>
<body>
{user clicks on an <a href="javascript:userSelectedChoice()...>, the
above JS
gets executed, the <img> below is swapped out before page reloads}
<img src="default.gif" alt="-" name="manualpick" id="manualpick">
</body>