JS: Displaying Current URL

A quick code snippet on how to show visitors the current URL. Good for 404 pages, etc. Just place these three lines of JS in you page, wherever you want the script to take effect: <script language=”javascript” type=”text/javascript”> document.write(document.location.href); </script> … Continue reading