http://www.java2s.com/example/javascript/browser-object-model/convert-location.href-url-to-anchor-link-demo-cf5fb.htm