summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--_www/index.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/_www/index.html b/_www/index.html
index aea85e5..f4fb76b 100644
--- a/_www/index.html
+++ b/_www/index.html
@@ -65,6 +65,7 @@
Caches:
<input name="query" />
<button onclick="doSearch()">Search</button>
+ <button onclick="doClearResult()">Clear result</button>
</div>
<div id="result"></div>
<div id="notif"></div>
@@ -117,6 +118,10 @@
onSearchResult(res.data)
}
+ async function doClearResult() {
+ document.getElementById("result").innerHTML = ""
+ }
+
function onSearchResult(dnsRecords) {
const elResult = document.getElementById("result")
elResult.innerHTML = ""