如果用 javascript 去搬動 iframe DOM 的位置, 瀏覽器會將其內容重新載入,這是現有 HTML 規格
http://jsfiddle.net/pZ23B/
測試結果:
* Safari 3.1 / Win: reload
* Opera 9.5 / Win: reload
* IE10: reload
* IE7 / IE8: not reload
(部份摘自 https://bugzilla.mozilla.org/show_bug.cgi?id=254144)
參考:
* https://bugzilla.mozilla.org/show_bug.cgi?id=254144
> When an iframe element is inserted into a document that has a browsing context, the user agent must create a nested browsing context, and then process the iframe attributes for the "first time".
範例: http://jsfiddle.net/pZ23B/
測試結果:
* Safari 3.1 / Win: reload
* Opera 9.5 / Win: reload
* IE10: reload
* IE7 / IE8: not reload
(部份摘自 https://bugzilla.mozilla.org/show_bug.cgi?id=254144)
參考:
* https://bugzilla.mozilla.org/show_bug.cgi?id=254144
留言