Hi folks,
How can I get javascript to return the current filename of the web page?
Hi have three pages and I want to run a script depending on what the current page is.
Example:
IF pagename = index.php?catId=1 THEN something
IF pagename = index.php?catId=2 THEN something else
I can't do this in PHP, it has to be javascript.
I'd appreciate any pointers.
Thanks.
How can I get javascript to return the current filename of the web page?
Hi have three pages and I want to run a script depending on what the current page is.
Example:
IF pagename = index.php?catId=1 THEN something
IF pagename = index.php?catId=2 THEN something else
I can't do this in PHP, it has to be javascript.
I'd appreciate any pointers.
Thanks.