Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

get format file in javascript

var myString = "this.is.my.file.txt"
alert(myString.substring(myString.lastIndexOf(".") + 1));

// Result
txt
 
PREVIOUS NEXT
Tagged: #format #file #javascript
ADD COMMENT
Topic
Name
9+8 =