取得iframe src属性的的值:
Html代码
?1234567891011121314151617181920 <!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="> <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="> </body> </html>
更多信息请查看IT技术专栏