1 2 3 4 5 6 7 8 9 10 11 |
<script language="JavaScript"> function file_extension(filepath){ try{ return filepath.slice(filepath.lastIndexOf(".")+1).toLowerCase(); }catch(e){ // log at will :) } } </script> |
1 2 3 4 5 6 7 8 9 10 11 |
<script language="JavaScript"> function file_extension(filepath){ try{ return filepath.slice(filepath.lastIndexOf(".")+1).toLowerCase(); }catch(e){ // log at will :) } } </script> |