Search

11/09/2007

note about iframe

1. iframe id="iframe" , 用 document.getElementById('iframe') 在 IE 下會抓不到,換一個 id 即可。待確認

2. 完全清除 iframe 的 border 單靠 CSS 是不夠的,要設定 iframe frameborder="0",設定後即可用 CSS control border style, ex: iframe{border: 1px solid #36c}

PPK - Javascript - Iframes


  1. The most important rule is to give any iframe you create a name attribute, even if you also use an id.
  2. alert(frames['inner'].document.body.innerHTML)

http://chunghe.googlepages.com/outter.htm

沒有留言: