Hide/unhide div based on URL
I hope someone in here can help me out because I am a bit confused right now! I have searched everywhere for solutions on this issue but cant find anything...
The question:
I would like to show a specific "div" when and only when visitors are on the root domain etc. test.com/index.php
If visitors are on any other url the "div" should be hidden. (Including test.com/index.php"?something-extra-here")
How can this be achieved in PHP/JavaScript?
Any ideas? Any help is appreciated
Thanks in advance!
The 2nd Amendment, 1789 - The Original Homeland Security.
Gun control means never having to say, "I missed you."