April 13, 2000 - Copying HTML Content | 2
April 13, 2000|
Copying HTML Content
Tips: April 2000
Yehuda Shiran, Ph.D.
outerHTMLof a page includes all its HTML tags. The
innerHTMLproperty is the inner part of
outerHTML, i.e. it does not include the outer most tag pair. Usually, you would assign the
outerHTMLof the source page to the
innerHTMLof the target page:
targetObj.innerHTML = sourceObj.outerHTML;
If, for example, the copied structure is a table, the innerHTML will not include the
Learn more about popup windows creation and usage in Tutorial 1, Working with Windows.