'createDocumentFragment()' Example : createDocumentFragment : Node Operation JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Node Operation » createDocumentFragment »

 

'createDocumentFragment()' Example



    
<html>
<body>
<script language="JavaScript">
function function1() {
   var newDoc = document.createDocumentFragment();
   newDoc.innerHTML = "<p>Body Content</p>";
   alert(newDoc.innerHTML)

</script>
<input id="myT" type="button" value="Click me" onclick="function1();">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Node Operation
» createDocumentFragment