my current url is >http://localhost:2828/Employee/EmployeeList?EId=null
how to get current url using java script
if i use window.location.pathname it givs only "Employee/EmployeeList"
if i use window.location.href it givs "http://localhost:2828/Employee/EmployeeList?EId=null"
i want "Employee/EmployeeList?EId=null" any solution