Added event attribute

This commit is contained in:
Matt Karl 2014-10-31 13:41:25 -04:00
parent 6c698ff9ee
commit 047273e3b8

View File

@ -17,6 +17,7 @@
// Add a link to the page
$link = html('a#google.external rel=external', 'Link', 'class="test something" target=blank rel=test');
$link->href = 'http://google.com';
$link->onclick = "return confirm('Navigate away?');";
$link->appendTo($doc->body);
// Create an unordered list for an array of items