jquery得到iframe src属性值的方法
取得iframesrc属性的的值:
Html代码
<!DOCTYPEHTML>
<html>
<head>
<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>
<title>jquery</title>
<styletype="text/css">
</style>
<scripttype="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<scripttype="text/javascript">
$(document).ready(function(){
vardk=$(window.parent.document).find("#iframe_id").attr("src");
alert(dk);
});
</script>
</head>
<body>
<iframeid="iframe_id"name="iframe_name"src="http://www.baidu.com"></iframe>
</body>
</html>热门推荐
10 财运虎年祝福语简短语
11 单亲爸爸春节祝福语简短
12 狗狗上厕所训练
13 植物种植祝福语简短
14 翻译考试祝福语朋友简短
15 个人周年庆简短祝福语
16 狗狗怎么训练
17 分别祝福语简短搞笑英文
18 生日广州男生祝福语简短