Using window.location to Display Content
I'm currently paying for a web service on a hosted platform. Basically, I'm unable to edit any raw content, however I am able to do things like add JS/HTML to the header or footer of a page, which will in turn be displayed on every page of this platform. My dilemma is, I only want content being showed on a single page of the platform. Specifically, I want a window.alert being displayed on the "/signup" page, but all I have to work with is JS in a global footer.
Is there some way I can use window.location to achieve this?
Yes, on using a RegExp match():
alert('this is the sign up page!');
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)