A little public challenge for Sotos because he mocked my humble trading name (in another thread):
You have TWO documents... Parent.htm and Child.htm and the second loads into the iframe of the first.
When you click the button in the iframe an alert should appear to display "I see you!".
In other words the child should be able to access the parent's function.
Now make it happen Sotos! (oh, and no jquery allowed... just plain JS )
-Parent.htm---------------------------------------------------------------------------------
<!DOCTYPE html>
<head>
</head>
<body>
<script type="text/javascript">
function RunMe(Msg){alert(Msg);}
</script>
<iframe id="TheFrame" src="Child.htm"></iframe>
</body>
</html>
-Child.htm---------------------------------------------------------------------------------
<!DOCTYPE html>
<head>
</head>
<body>
<script type="text/javascript">
</script>
<button onclick="parent.RunMe('I see you!');">Test</button>
</body>
</html>
----------------------------------------------------------------------------------