How to modify this to return the current page name without parameter?
document.write(location.href.split("/").slice(-1));
Thanks.....
energylevels
You don't.
You use: document.title
document.title
energylevels As you have written, in this situation you can not do but you will have to use document.title