这个哪里有问题,求教,感谢
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>location</title>
</head>
<script type="text/javascript">
var kl=[protocol,host,pathname,search,hash];
var num;
for(num=0;num<=4;num++)
{
document.write(location.(kl[num]);
}
</script>
<body>
</body>
</html>