document.writeln('
Search Websites
www.keyboard.fyi
(Website Search)
'); var isThisAnArticle=false; var input = document.getElementById("searchbox"); input.addEventListener("keypress", function(event) { if (event.key === "Enter") {event.preventDefault(); document.getElementById("searchbutton").click();} }); function myFunction() { var searchStartSuccess=true; var mySearch=document.getElementById("searchbox").value; mySearch=mySearch.toLowerCase(); mySearch=mySearch.replace(/[^0-9^a-z^ ]/g,""); //removes anything except numbers, letters, or spaces if (mySearch=="") {searchStartSuccess=false;} if (mySearch.length<=2) {searchStartSuccess=false;} if (searchStartSuccess==false) { document.getElementById("status").innerHTML = "Invalid Search. Try again."; } else if (searchStartSuccess==true) { document.title = "Searching..."; document.getElementById("status").innerHTML = "Searching..."; if (isThisAnArticle==false) {window.location.assign("s.php?search=" + mySearch);} else if (isThisAnArticle==true) {window.location.assign("../search/s.php?search=" + mySearch);} } }