Home
Web Front-end
JS Tutorial
Get the value in iframe through javascript sample code_javascript skills



Get the value in iframe through javascript sample code_javascript skills
May 16, 2016 pm 05:31 PM
iframe
value
复制代码 代码如下:
<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>
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What are the loading events of iframe?
