让我先说一下......我引用了这个问题/答案,它似乎包含线索,但我仍然缺少整个画面
从本质上讲,索引页面的结构就是这样
<html>
<body>
<div class="frames-wrap">
<iframe id="this-iframe" src="location.php">
</iframe>
</div>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
location.php然后包含一个框架集(咳咳,不是我的想法......),它有两个像这样设置的框架......
<frameset cols="350,*">
<frame src="search.php" id="frame_search" name="search"/>
<frame src="edit.php" id="frame_edit" name="edit" />
</frameset>
Run Code Online (Sandbox Code Playgroud)
如果我想操纵索引页面和这些元素之间的对象我将如何处理这个?
我一直认为上下文应该类似于window.parent.frames[0].document...我还缺少什么?