问题遇到的现象和发生背景
我需要使用虚幻调用Web版本的PPT翻页按钮,而他的翻页按钮在浏览器F12 打开查看是藏在Html元素的 iframe 框架下面。我使用如下命令都无法获得输出对象
问题相关代码
唯独本代码可以获得iframe 对象;
var sumDocument= document.getElementById('wacframe');
alert(sumDocument);
下面代码没有打印结果
window.frames[0].document.getElementById('ButtonFastFwd-Small14');
document.frames[“wacframe”];
document.getElementById("'wacframe").contentWindow.document.getElementById("ButtonFastFwd-Small14"));
求解正确访问函数?%ra=link
操作的Web地址:https://view.officeapps.live.com/op/view.aspx?src=http://mczaiyun.top/ht/2.ppt