SyntaxFix
Write A Post
Hire A Developer
Questions
Try;
var str = "foo/bar/test.html"; var tmp = str.split("/"); alert(tmp.pop());