I was trying to capture the pathname only when using
var from= window.location .pathname;
and I want to lose the filename. Is there another way for me to get just the path?
var from= window.location .pathname;
and I want to lose the filename. Is there another way for me to get just the path?
Comment