<script type="text/javascript"> //http://www.w3schools.com/htmldom/dom_obj_location.asp document.write( location.href+"<br/>"); </script>