<input id="Button1" type="button" value="前进" οnclick="document.getElementById('MainFrm').contentWindow.history.forward();" />
<input id="Button2" type="button" value="后退" οnclick="document.getElementById('MainFrm').contentWindow.history.back();" />
在IE中iframe或者frame的contentWindow属性可以省略,但在Firefox中如果要对iframe对象进行编辑则必须指定contentWindow属性。