【发布时间】:2020-05-19 07:16:47
【问题描述】:
我一直在尝试做某事,描述为here。 有人回答了,我试了一下。 好吧,结果是 iframe 每秒都在闪烁。 这是代码:
<!DOCTYPE html>
<body>
<script type="text/javascript">
function iframeDidLoad() {
var website = "https://bing.com"
document.getElementById('myIframe').src = website;
}
</script>
<iframe
width="500"
height="500"
onLoad="iframeDidLoad();"
src=""
id="myIframe"
></iframe>
</body>
</html>
谁能解决?
【问题讨论】:
-
哦,那也是我的!我只是说一个人的答案是这样的结果。
标签: javascript html function web iframe