Demo of Location Object JavaScript

https://www.plus2net.com:8080/javascript_tutorial/demo/location2.php?query=my_search&name=my_name&username=plus#results-to_display
<script language='JavaScript' type='text/JavaScript'>
<!--
var url_path = document.createElement('a');
url_path.href = 'https://www.plus2net.com:8080/javascript_tutorial/demo/location2.php?query=
my_search&name=my_name&username=plus#results-to_display';
//document.write(url_path.href);
document.write('<br>');
document.write('<b><i>href</i> : </b>'+url_path.href);
document.write('<br>');
document.write('<b><i>protocol</i> : </b>'+url_path.protocol);
document.write('<br>');
document.write('<b><i>host</i> : </b>'+url_path.host);
document.write('<br>');
document.write('<b><i>hostname</i> : </b>'+url_path.hostname);
document.write('<br>');
document.write('<b><i>port</i> : </b>'+url_path.port);
document.write('<br>');
document.write('<b><i>pathname</i> : </b>'+url_path.pathname);
document.write('<br>');
document.write('<b><i>search</i> : </b>'+url_path.search);
document.write('<br>');
document.write('<b><i>hash</i> : </b>'+url_path.hash);
document.write('<br>');
document.write('<b><i>origin</i> : </b>'+url_path.origin);
//-->
</script>