»
EnglishFrenchVietnamese

Print - Current Document URL Displayer - JavaScriptBank.com

Full version: jsB@nk » Snippet » Current Document URL Displayer
URL: https://www.javascriptbank.com/current-document-url-displayer.html

Current Document URL Displayer © JavaScriptBank.comSometimes we need to display current URL on page, and web developers usually provide the entire path with breadcrumb, certainly. these scripts will be complex. But if you only want simple JavaScript to do this, let place six code lines on where you want to display URL document.

Full version: jsB@nk » Snippet » Current Document URL Displayer
URL: https://www.javascriptbank.com/current-document-url-displayer.html



JavaScript
<script type="text/javascript"><!--// Lee Underwood - http://javascript.internet.com/  document.write("This page is located at: <br>"+document.URL);// --></script>