<!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.com/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
>
</
body
>
</
html
>
原文:http://www.cnblogs.com/wdcwy/p/5031169.html