Posted By

komposition on 06/27/08


Tagged

js textmate if javascropt


Versions (?)

Run Function, if match refferrer


 / Published in: Other
 

  1. // Run Function, if match refferrer.
  2.  
  3. str = "SomeStrings";
  4. ref = document.referrer;
  5. // alert(ref);
  6. if (ref.match(str)) {
  7. SomeFunction();
  8. };

Report this snippet  

You need to login to post a comment.