Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check file name in url

        let url = window.location.pathname;
        let filename = url.substring(url.lastIndexOf('/')+1);
        console.log("filename",filename);
		alert(filename);
 
PREVIOUS NEXT
Tagged: #check #file #url
ADD COMMENT
Topic
Name
2+4 =