本文實例講述了JS返回iframe中frameBorder屬性值的方法。分享給大家供大家參考。具體分析如下:
frameborder 屬性規定是否顯示框架周圍的邊框。
<!DOCTYPE html><html><body><iframe id="myframe" src="/default.asp" frameborder="0"><p>Your browser does not support iframes.</p></iframe><p>The frameborder is set to:<script>document.write(document.getElementById("myframe").frameBorder);</script><p></body></html>希望本文所述對大家的javascript程序設計有所幫助。
新聞熱點
疑難解答