KW Online Tools Zone
HOW TO GET CURRENT WEB PAGE URL HOSTNAME PORT PROTOCOL AND URI IN JAVASCRIPT
 Run 
 Clear 
HTML [Ctrl+Enter] - to run
CSS [Ctrl+Enter] - to run
Javascript [Ctrl+Enter] - to run
OUTPUT
Copyright © 2021 Knowledge walls, All rights reserved