+
81
-

如何操作iframe的前进后退?

如何操作iframe的前进后退?用js或jquery怎么实现?

网友回复

+
0
-

<input id="Button1" type="button" value="前进"BfwOnclick="document.getElementById('myframe').contentWindow.history.forward();" />
<input id="Button2" type="button" value="后退"BfwOnclick="document.getElementById('myframe').contentWindow.history.back();" />

有个跨域问题需要在iframe里加入相关的跨域头
我知道答案,我要回答