I want to play an animation when you are not redirected from my page (when you have not clicked a link on My
page and got redirected to another page on My
page) much like: animade.tv
It there any way to detect that with javascript? If not, can you do it with php?
You can use both js
or php
js: document.referrer
php: $_SERVER['HTTP_REFERER']
sometimes it could be empty, you can just verify that is different from your domain
use document.referrer
to test the url