取得iframe src属性的的值:
Html代码
<!DOCTYPE HTML> 
<html> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>jquery</title> 
<style type="text/css"> 
</style> 
<script type="text/javascript" src="http://ajax.googleapis测试数据/ajax/libs/jquery/1.4.2/jquery.min.js"></script> 
<script type="text/javascript"> 
$(document).ready(function (){ 
var dk = $(window.parent.document).find("#iframe_id").attr("src"); 
alert(dk); 
}); 
</script> 
</head> 
<body> 
<iframe id="iframe_id" name="iframe_name" src="http://HdhCmsTestbaidu测试数据"></iframe> 
</body> 
</html>
 
                    
                    
      查看更多关于jquery得到iframe src属性值的方法_jquery的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://www.haodehen.cn/did25296