diff --git a/core/html/html_builder.cpp b/core/html/html_builder.cpp
index f0c72a6..565abf2 100644
--- a/core/html/html_builder.cpp
+++ b/core/html/html_builder.cpp
@@ -344,6 +344,12 @@ HTMLTag *HTMLTag::autocomplete_photo() {
return this;
}
+HTMLTag *HTMLTag::onclick(const String &val) {
+ attrib("onclick", val);
+
+ return this;
+}
+
HTMLTag *HTMLTag::inputmode(const String &val) {
attrib("inputmode", val);
diff --git a/core/html/html_builder.h b/core/html/html_builder.h
index d4576ab..da3b74c 100644
--- a/core/html/html_builder.h
+++ b/core/html/html_builder.h
@@ -82,7 +82,7 @@ public:
HTMLTag *autocomplete_url();
HTMLTag *autocomplete_photo();
- //onclick, etc
+ HTMLTag *onclick(const String &val);
HTMLTag *checked(const bool val = true);
HTMLTag *autofocus(const bool val = true);