Posted By

arpo on 02/09/10


Tagged


Versions (?)

Is local or online?


 / Published in: JavaScript
 

  1. function isLocal()
  2. {
  3. return (document.location.href.indexOf("file://")==0) ? true : false;
  4. }

Report this snippet  

You need to login to post a comment.