var url=location.search; >var ename ;
var Request = new Object();
if(url.indexOf("?")!=-1)
{
var str = url.substr(1);
strs= str.split("&");
for(var i=0;i
{
요청[strs[i].split("=")[0]]= (strs[ i].split("=")[1]);
}
}
ename = Request["ename"]
예: url is: http: //www.medivh.com?ename=right
그러면 얻은 ename은: right입니다.