diff --git a/public/index.html b/public/index.html
index 302862c..7b0472f 100644
--- a/public/index.html
+++ b/public/index.html
@@ -1,28 +1,26 @@
-
- l00kup// - Domain Lookup Services
+ Domain Lookups
l00kup// - Domain Lookup Services
- Made by abrendan
@@ -33,6 +31,7 @@
document.getElementById('reverseLookupForm').addEventListener('submit', function(e) {
e.preventDefault();
const domain = document.getElementById('reverseDomainInput').value;
+ document.getElementById('output').innerHTML = ''; // Clear previous output
fetch('/reverseLookup', {
method: 'POST',
@@ -54,6 +53,7 @@
document.getElementById('whoisLookupForm').addEventListener('submit', function(e) {
e.preventDefault();
const domain = document.getElementById('whoisDomainInput').value;
+ document.getElementById('output').innerHTML = ''; // Clear previous output
fetch('/whoisLookup', {
method: 'POST',
@@ -64,7 +64,7 @@
})
.then(response => response.json())
.then(data => {
- document.getElementById('output').innerHTML += `WHOIS Information
${data.whois}
`;
+ document.getElementById('output').innerHTML = `WHOIS Information
${data.whois}
`;
})
.catch(error => {
console.error('Error:', error);
@@ -72,5 +72,4 @@
});
-
-
+