MooTools - Hello World 2

by pythondave

HTML

<div id="div1"></div>

JavaScript

var div1 = document.id('div1');
div1.set('text', 'Hello World!');