What determines whether/when inline javascript executes?

Status
Not open for further replies.

GohanIYIan

Ars Legatus Legionis
10,196
I'm kind of baffled. I'm using a fairly simple script to refresh a frame:
Code:
<script type="text/javascript">
window.top.frame_name.location = "/file.php";
</script>

Roughly 3/4 of the time this work exactly as expected and the other frame loads the specified URL. But then other times it just... doesn't. At first I thought it was some quirk of IE9, but FF10 does the same thing. In both cases the browser's javascript console shows no errors or warnings. The code just intermittently doesn't execute.

Notably, that code posted is the entire contents of one frame. Sometimes when the frame loads with that content, the javascript executes. Other times when it loads with byte-for-byte identical content, nothing happens.
 
Status
Not open for further replies.