Posted By

primitiveshaun on 02/15/11


Tagged

script execution


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

jondiscipulo
nonname


Execute JS on arrival only


 / Published in: JavaScript
 

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

  1. if ( document.referrer == null || document.referrer.indexOf(window.location.hostname) < 0 ) {
  2.  
  3.  
  4. }

Report this snippet  

You need to login to post a comment.