If I have a document with a frameset and some javascript defined in a head tag, i.e something like this:
<html>
<head>
<script>
function foo() {}
</script>
</head>
<frameset>
<frame src="A.html">
</frameset>
</html>
I am already assuming that the frame (A.html) fires its onLoad event handler before that of its parent. I'm almost positive that is a safe assumption. However, is it safe to assume that the script context of A.html can safely access all of the script code defined in the head of the parent window?
What assumptions can I make?