Execute JS on arrival only


/ Published in: JavaScript
Save to your folder(s)

JS to be perfomed on the users first visit to a page


Copy this code and paste it in your HTML
  1. if ( document.referrer == null || document.referrer.indexOf(window.location.hostname) < 0 ) {
  2.  
  3.  
  4. }

Report this snippet


Comments


You need to login to view comments.