<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script type="text/javascript">
var uristr = window.location.search.substr(1);
var array = uristr.split('&&');
for (var i = 0; i < array, length; i++) {
var array1 = array[i].split('=');
alert(array1[0]);
}
function showhash() {
alert(window.location.hash);
}
function showhost() {
alert(window.location.host);
}
function showhref() {
alert(window.location.href);
}
function showpathname() {
alert(window.location.pathname);
}
function showport() {
alert(window.location.port);
}
function showprotacal() {
alert(window.location.protacal);
}
function showsearch() {
alert(window.location.search);
}
</script>
</head>
<body>
<input id="Button1" type="button" value="Hash" οnclick="showhash()" />
<br />
<input id="Button2" type="button" value="host" οnclick="showhost()"/>
<br />
<input id="Button3" type="button" value="href" οnclick="showhref()"/>
<br />
<input id="Button4" type="button" value="pathname" οnclick="showpathname()"/>
<br />
<input id="Button5" type="button" value="port" οnclick="showport()"/>
<br />
<input id="Button6" type="button" value="protocal" οnclick="showprotacal()"/>
<br />
<input id="Button7" type="button" value="search" οnclick="showsearch()"/>
</body>
</html>