mirror of
https://github.com/Mibew/CanteenHTML5.git
synced 2024-11-15 08:44:11 +03:00
Added event attribute
This commit is contained in:
parent
6c698ff9ee
commit
047273e3b8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user