取得iframe src属性的的值:
Html代码
?1234567891011121314151617181920 <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gbk" /> <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技术专栏
2025国考·省考课程试听报名