From 047273e3b873f3e16f42dbb118efee9a84c398ef Mon Sep 17 00:00:00 2001 From: Matt Karl Date: Fri, 31 Oct 2014 13:41:25 -0400 Subject: [PATCH] Added event attribute --- examples/document.php | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/document.php b/examples/document.php index 5275e40..0fd3834 100644 --- a/examples/document.php +++ b/examples/document.php @@ -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