const url = "https://www.seek4info.com/search.php?type=sites&order=rand&query=wordpress+hosting";
const a = document.createElement('a');
a.href = url;
console.log(a.host);
console.log(a.href);
console.log(a.protocol);
console.log(a.search);
/*
run:
www.seek4info.com
https://www.seek4info.com/search.php?type=sites&order=rand&query=wordpress+hosting
https:
?type=sites&order=rand&query=wordpress+hosting
*/