1. document.all.myframe :返回的是<iframe>这个对象
2. document.frames.myframe 返回的是<iframe>里的页面的window对象
2. document.frames.myframe 返回的是<iframe>里的页面的window对象
解决方案 »
- 求大牛:关于解决XSS攻击的demo
- 如何取得当前form所在的iframe的名字?
- Jscript的简单问题
- 如何在子窗口内直接获取框架或者框架上其他子窗口内的变量值(别用session.和cookie)
- 求助:为什么这段代码中的删除出错呢?
- 大虾们,怎样才能根据request得到的内容来修改select列表框显示的文本呢???
- 下拉菜单的动态生成问题?
- 一个字符问题,弄了一晚上,帮帮忙!
- 打开一个窗口为满屏显示的问题!?
- easyui Cannot read property 'panel' of undefined
- 如何将表格保存为excel?谢谢各位大哥
- 那位兄弟帮帮忙,看看这段html如何解析
frames
--------------------------------------------------------------------------------Retrieves a collection of all window objects defined by the given document or defined by the document associated with the given window.Syntax[ oColl = ] object.frames
[ oObject = ] object.frames(vIndex [, iSubIndex]) Possible ValuesoColl Array of window objects.
oObject Reference to an individual item in the array of elements contained by the object.
vIndex Required. Integer or string that specifies the element or collection to retrieve. If this parameter is an integer, the method returns the element in the collection at the given position, where the first element has value 0, the second has 1, and so on. If this parameter is a string and there is more than one element with the name or id property equal to the string, the method returns a collection of matching elements.
iSubIndex Optional. Position of an element to retrieve. This parameter is used when vIndex is a string. The method uses the string to construct a collection of all elements that have a name or id property equal to the string, and then retrieves from this collection the element at the position specified by iSubIndex.
1.document.getElementById("myframe");
2.document.getElementById("myframe").contentWindow;