Our url pathname is
www.nicadpower.com/index.com
but we only want to get the pathname after www.nicadpower.com which is
index.com
how can we get index.com using window.location and jquery
I think you want
window.location.pathname
This would give you /index.com
To get rid of the leading /, you could simply use substring:
window.location.pathname.substring(1);