Formatdatei in JavaScript abrufen
var myString = "this.is.my.file.txt"
alert(myString.substring(myString.lastIndexOf(".") + 1));
// Result
txt
Lucas Juan
var myString = "this.is.my.file.txt"
alert(myString.substring(myString.lastIndexOf(".") + 1));
// Result
txt