<html>
<head>
<link rel="stylesheet" href="my.css" />
</head>
<body>
<iframe id="baidu-container" src="http://image.baidu.com/i?tn=baiduimage&ipn=r&ct=201326592&cl=2&lm=-1&st=-1&fm=result&fr=&sf=1&fmq=1374487244324_R&pv=&ic=0&nc=1&z=&se=1&showtab=0&fb=0&width=&height=&face=0&istype=2&ie=utf-8&word=giant" frameborder="0">
</iframe>
<script type="text/javascript" src="my.js"></script>
</body>
</html>
I would like to execute the script in my.js after this iframe has loaded completely. So what shoud i do? Thanks.
loadevent on the iframe element which then accesses the content of the iframe. Do you use jQuery at all?