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