我正在嘗試從FrameSet中將innerHTML導出爲excel(.xlsx)。 有沒有像JavaScript這樣的「this.document.getElementById('completeFrameSet')。InnerHTML」?從Frameset中獲取InnerHTML
<frameset onLoad="init()" onResize="balken()" framespacing="0" frameborder="0" cols="286,*" id="completeFrameSet">
<frameset id="links" rows="32,*">
<frame marginheight="0" marginwidth="0" scrolling="no" name="obLi" src="content_LeftTop.php >
<frame marginheight="0" marginwidth="0" scrolling="no" name="untLi" src="content_LeftBottom.php">
</frameset>
<frameset id="rechts" rows="32,*">
<frameset id="oben" cols="*,13">
<frame marginheight="0" marginwidth="0" scrolling="no" name="obRe" src="content_RightTop.php">
<frame scrolling="no" src="leer.html">
</frameset>
<frame marginheight="0" marginwidth="0" scrolling="auto" name="untRe" src="content_RightBottom.php">
</frameset>
</frameset>
映入眼簾, 凱文
你能否更詳細地描述你的問題?您正在尋找另一種獲取內容的方式,而不是使用「document.getElementById('completeFrameSet')。InnerHTML」? – 2012-03-26 12:22:11
它告訴我「undefined」:) 所以我需要一種方法來獲取我的Frameset中的所有HTML數據。 我使用哪種方式對我來說並不重要。 – 2012-03-26 12:33:05
可以幫助:http://stackoverflow.com/a/11107977/2835520 – IgniteCoders 2015-05-08 07:14:26