<script type="text/javascript">
            var Str1 = window.location.hash;

  • hash — takes the anchor (#) plus everything after it. Ex: "#anchor"
  • host — retrieves everything after the http:// up to the first /. Ex: "timothyfoster.wdfiles.com"
  • hostname — same as host so far
  • pathname — the first / after the host to the anchor. Ex: "/local—code/javascript:urls"
Please refer to the Legal Guidelines for license information.