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
{
Request[strs[i].split("=")[0]]=(strs[ i].split("=")[1]);
}
}
ename = Request["ename"];
For example: url is: http: //www.medivh.com?ename=right
Then the obtained ename is: right.