HTML Editor
<!DOCTYPE html> <html lang="en-US"> <body> <script> var txt = ""; txt += "<p>Page location: "+window.location.href+"</p>"; txt += "<p>Page hostname: "+window.location.hostname+"</p>"; txt += "<p>Page path: "+window.location.pathname+"</p>"; txt += "<p>Page protocol: "+window.location.protocol+"</p>"; txt += "<p>Port number: "+window.location.port+"</p>"; document.write(txt); </script> </body> </html>
OUTPUT
×

Save as Private