MCPcopy Create free account
hub / github.com/Vishal-raj-1/Awesome-JavaScript-Projects / handlesearch

Function handlesearch

assets/js/httpcats.js:1–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1function handlesearch(){
2 var statuscode = document.getElementById("inputcode").value;
3 if(!statuscode){
4 alert("Enter Status Code to Search");
5 }
6 else{
7 const url = "https://http.cat/"+statuscode;
8 document.getElementById("outputimg").src = url;
9 document.getElementById("inputcode").value="";
10 document.getElementById("inputcode").focus();
11 }
12 }
13

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected