Contact: aviboots(AT)netvision.net.il
39,895 questions
51,826 answers
573 users
const protocol = window.location.protocol; const domain = window.location.hostname; const port = window.location.port; const url = `${protocol}//${domain}:${port? port : ""}` console.log(url); /* run: "https://fiddle.jshell.net:" */