MooTools - Create Image Element

by pythondave

HTML

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

JavaScript

new Element('img#bn', {
    src: 'http://www.chessguru.de/palview/linpcs35/bn35.gif'
}).inject($('div1'));