1.父頁面獲取子ifream中document元素方法spa
window.document.getElementById('warnIfream').contentWindow.document.getElementById('childShow').value;
warnIfream爲ifream的ID,
childShow爲子ifream的document的元素ID
2.父頁面獲取子ifream中function方法
warnIfream.window.Login();
warnIfream爲子ifream標籤中的name屬性
Login爲子ifream頁面中的方法
![](http://static.javashuo.com/static/loading.gif)