title: Returning [object HTMLDivElement] while using javascript
body: <p>I am using javascript to write content to a iframe using text file .</p>
  
  <p><code>var fs = require('fs');     //file read module
   global.content = fs.read('post.txt');</code></p>
  
  <p>when i try to write content to innerHTML of the para using this :</p>
  
  <p><code>var write = ifrm.getElementsByTagName("p")[0]; 
   write.innerHTML = content;</code></p>
  
  <p>it returns [object HTMLDivElement] .</p>
  
  <p>Why is this happening ? Any solution ?</p>