Javascript alternative to document.write not innerHTML
<p>I modified a little js script which compares a date to today and calculates the difference. (I'm a novice) 
However, it uses document.write, which I've been told is bad. 
I don't know why it's bad, people just say it's bad and never explain why. 
Anyway, I'm looking for an alternative. innerHTML doesn't seem to work, and other questions answered on this site just point to DOM manipulation references without really answering the question.</p>

<p>Here's my script:</p>

<pre><code>    //Set the two dates
    var iquit =new Date(2013, 1, 15);
    today=new Date();
    //Get 1 day in milliseconds
    var one_day=1000*60*60*24;
    var day_numeric=Math.ceil((today.getTime()-iquit.getTime())/(one_day));
    //Calculate difference btw the two dates, and convert to days
    document.write("&lt;p&gt;"+day_numeric+
            " days have gone by since you quit smoking!&lt;/p&gt;"+
            "&lt;p&gt;You have saved "+ day_numeric*7+" pounds&lt;/p&gt;");
</code></pre>

<p>If anyone can tell me a better way to write this, it'd be amazing.</p>
