var obj1=document.getElementById("myframe");
alert(obj1.src); //取标签属性
alert(obj1.contentWindow); //取相关联的 window 窗口对象