diff --git a/public/a.html b/public/a.html
index 0d8b3b60..b49f5de1 100644
--- a/public/a.html
+++ b/public/a.html
@@ -53,7 +53,7 @@
Alloy Proxy
A fast, lightweight proxy developed by Titanium Network.
@@ -62,7 +62,7 @@
return document.getElementById(id);
};
var url = window.location.hostname;
- document.getElementById('alloy').onsubmit = function alloyhb() {
+ document.getElementById('alloy').onclick = function alloyhb() {
var url = $('url').value;
//cookie to authorize AL usage. TTL of 3 days :)