Hey everyone :gl:
I'm using some JavaScript on one of my sites, and I am stuck on something.
Basically I have an external js file that is loaded on all my pages and handles some things that are done on every page. On certain pages, I need to be able to know what (whose) page it is. I have a folder with individual member pages that are all .php files. So what I want to do is get the URL of the current page, and check for part of the url (/members/CURRENTMEMBERSPAGE.php) so I know what page it is currently on.
So basically I need a way to check if something exists in the location object.
I'm using some JavaScript on one of my sites, and I am stuck on something.
Basically I have an external js file that is loaded on all my pages and handles some things that are done on every page. On certain pages, I need to be able to know what (whose) page it is. I have a folder with individual member pages that are all .php files. So what I want to do is get the URL of the current page, and check for part of the url (/members/CURRENTMEMBERSPAGE.php) so I know what page it is currently on.
So basically I need a way to check if something exists in the location object.





