Hi,

I'm trying to make a new div element whenever I click a link.

The code below doesn't work:

$('link').addEvent('click', function(){
                var img = new Element('div', {
                        'id': 'img'
                        }
                );
});

Any help would be greatly appreciated!

:)

Reply via email to