I am trying to enter the current date when the page loads. I am able to store it to a variable, I am just having trouble entering that variable onto the page.

HTML: 

```
<span id='test'>x</span>

```

Javascript: 

```
window.onload = function() {
  var month = new Array("January", "February", "March", "April", "May", "June", "July",    "August", "September", "October", "November", "December");
  var today = new Date();
  var dd = today.getDate();
  var mm = today.getMonth();
  var currentMonth = month[mm];
  var yyyy = today.getFullYear();
  today = currentMonth + ' ' + dd + ', ' + yyyy;
  document.getElementById('test').innertext() = today;
}

```

[JSFIDDLE](http://jsfiddle.net/8DeXF/1/)