【发布时间】:2020-06-07 06:22:30
【问题描述】:
我有一个在 iframe 中包含另一个页面的 HTML 页面,如下所示:
<!DOCTYPE html>
<html>
<head>
<style>
iframe{width:100vw;height:100vh;border:0}
</style>
<script>
function reload(){setTimeout(function(){document.body.firstElementChild.src+="",reload()},300000)}reload();
</script>
</head>
<body>
<iframe id="mappa" src="*********"></iframe>
</body>
</html>
现在我想在这个 iframe 中运行一个命令,像这样:$(".SimpleSliderDecrementButton").trigger("click");
我怎样才能让这个命令运行到 iframe 中?
【问题讨论】:
标签: javascript html iframe console