通过javascript获取iframe里的值示例代码

时间:2013-06-24    点击:51   
复制代码 代码如下:

<script type="text/javascript" language="javascript">
function CCCC(){
var File_NAME="";
var count=0;
if(document.frames("myFrame").document.all.length){
for(var i=0;i<document.all.length;i++){
if(document.frames("myFrame").document.all(i).type == 'checkbox' && document.frames("myFrame").document.all(i).checked== true) {
File_NAME=document.frames("myFrame").document.all(i).value;
alert(File_NAME);
count++;
}
}
}
if(count==1){
var url="<%=path%>/AttSSSS?File_NAME="+File_NAME;
var returnValue=showModalDialog(url,"AttSSSS","dialogWidth:700px;dialogHeight:500px;dialogLeft:400px;dialogTop:200px;center:yes;help:yes;resizable:yes;status:yes");
if(returnValue){
window.location.href= window.location.href;
}
}
else if(count<1){
alert('您还没有选择信息,请在需要选择的条目点击鼠标!');
}
else{
alert('每次只能选择一条信息!');
}
}
</script>
原生Js实现元素渐隐/渐现(原理为修改元素的css透明度)
原生Js页面滚动延迟加载图片实现原理及过程
jquery可见性过滤选择器使用示例
jquery子元素过滤选择器使用示例
struts2+jquery+json实现异步加载数据(自写)
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 Product All Rights Reserved