<!DOCTYPE HTML>
<html>
<head>
<link rel="stylesheet" type="text/css" href="http://forum.mybb.ru/style/Mybb_Bend/Mybb_Bend.css" />
</head>
<body>
<script type="text/javascript">
    alert(document.URL)
    //Tут добавить событие;
    function LoadF(){
        var win = document.getElementsByName('iframe01')[0].contentWindow,
            doc = win.document;
 
        win.eval.call( win, (function(){
            // тут все выполняется в контексте iframe
            function lala() {
                alert( 'lala' );
            }
            alert( 'Hello' );
        }).toString().replace(/^function\(\){/,'').replace(/}$/,''));
 
        var script = doc.createElement( 'script' );
        script.text = "lala()";
        doc.body.appendChild( script );
        doc.body.style.height = "100%";
        doc.body.onclick = function() {
            alert("Клик")
        }
        alert('Load');
    }
</script>
<iframe id="Iframe01" name="iframe01" src="http://lookatcode.com/showhtml" onload="LoadF()">
   
</body>
</html>