日期:2014-05-16  浏览次数:20368 次

javascript 中contentWindow和 frames

contentWindow属性是指 指定的frame或者iframe所在的window对象

IE?中为 frames["id"]其他为document.getElementById("id").contentWindow

contentWindow属性是指指定的frame或者iframe所在的window对象

在IE中iframe或者frame的contentWindow属性可以省略,但在Firefox中如果要对iframe对象进行编辑则

必须指定contentWindow属性。