Advertisement
rAthus

Lien retour navigateur uniquement si page précédente sur même domaine

Jan 5th, 2023 (edited)
1,259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.13 KB | None | 0 0
  1. <a href="/" onclick="javascript: if (document.referrer.indexOf(window.location.host)!=-1) { history.go(-1); return false; }">Retour</a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement