<iframe id="frame1" name="frame1" width="200" height="600" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://localhost/Widget/"></iframe>
我想從頁面http://localhost/Widget/
使用JavaScript查找此iframe的高度。如何從源頭獲取iframe的高度
有沒有辦法做到這一點?提前致謝。
不安全的JavaScript的嘗試,如果IFRAME違反同一產地 –
可能重複[調整iframe的寬度高度,以適應有內容](http://stackoverflow.com/問題/ 819416 /調整寬度高度的的iframe到嵌合用內容功能於它) –