iframe子頁面與父頁面間元素及js變量的訪問

一、子頁面訪問父頁面元素  window.parent.document.getElementById("openId").value; html jQuery方法爲:  $(window.parent.document).contents().find("#openId").val(); 與document相關的方法均可以這樣用  二、父頁面訪問子頁面元素  document.getElemen
相關文章
相關標籤/搜索