Answers for "how to check if localhost javascript"

0

how to check if localhost javascript

if (location.hostname === "localhost" || location.hostname === "127.0.0.1")
    alert("It's a local server!");
Posted by: Guest on August-31-2021

Code answers related to "how to check if localhost javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language