layer 彈框 很好用 頁面交互不好弄!!!父子彈框的交互!


@趙立成  下面2個文件你再試試,記得引入Jquery

   ①. main.html (子頁面)

< html >
< head >
< script type = "text/javascript" src = "jquery-1.7.1.min.js" ></ script >
< script type = "text/javascript" >
$(document).ready(function(){
     alert(100);
     var a1 = $('#a1', parent.document).val();
     var a2 = $('#a2', parent.document).val();
     alert(a1+"  "+a2);
});
</ script >
</ head >
< body >
</ body >
</ html >
 
< html >
< body >
< input type = "hidden" id = "a1" value = "123" />
< input type = "text" id = "a2" value = "456" />
< iframe src = "main.html" >
</ body >
</ html >
 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM