|
August 12, 2000 The Four Different inner/outer text/html Combinations Tips: August 2000
Yehuda Shiran, Ph.D.
|
|
You can change HTML containment elements (such as DIV and SPAN) on the fly by using one of the following four properties: innerText, outerText, innerHTML, and outerHTML. The following table summarizes the differences between these four properties:
The first alert box demonstrates the
The second alert box demonstrates the
The third alert box demonstrates the
The fourth alert box demonstrates the
People who read this tip also read these tips: Look for similar tips by subject: |