title: how can I know the code of HTML is making a new line?
body: <p><strong>My code:</strong></p>
  
  <pre><code>&lt;div id="box"&gt;
      &lt;p&gt;
          123
      &lt;/p&gt;
      &lt;p&gt;
          abc
      &lt;/p&gt;
  &lt;/div&gt;
  &lt;script&gt;
      var html = document.getElementById("box").innerHTML;
      for (var i = 0, len = html.length; i &lt; len; i++) {
          var word = html.charAt(i)
          alert("_" + word + "_" + i)  //Attention!!      when the "i" == 0
          if (i == 0) {
              alert(word==" ")        // it is false.....
          }
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Using API : "chatAt" ,how to write I could know the code of HTML is changing new lines.....(word == what????)</p>