| |||||||||||||||||
applyElement MethodApplies an element to another element. SyntaxoTarget.applyElement ( oNewElement )
Parameters
Return ValueNo return value. RemarksThe applyElement method applies one element to a target element by making the target a child of the new element. ExampleThe following sample demonstrates the use of the applyElement method to apply the I object to an unordered list. <script language="JavaScript">
function fnApply ( ) {
var oNewNode = document.createElement ( "I" );
oList.applyElement ( oNewNode );
}
</script>
<UL ID = oList>
<LI>List item 1
<LI>List item 2
<LI>List item 3
<LI>List item 4
</UL>
<input type=button value="Apply Element"
onclick="fnApply ( ) ">
|
| ||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme