9951 explained code solutions for 126 technologies


javascriptGet pathname of URL


(new URL(some_url)).pathnamectrl + c
new URL

create native JS URL object to parse specified URL

some_url

URL to parse

pathname

returns pathname of specified URL