Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
get filename from url js
moo
Programming language:
Javascript
2021-06-30 21:54:08
0
Q:
get filename from url js
Shawna
Code:
Javascript
2021-05-08 07:11:08
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
1
Tags
name
get
file
Related
get file name nodejs
js get file location
javascript get url parameters
javascript get url
js get url parameter
get current url js
js get file name from path
js get the filename you uploaded
javascript get base url
javascript get current url
javascript get url path
how to extract domain name of url of current page in javascript
get site url javascript
js get file content from url
get data from url javascript
js get base url
get url javascript
New to Communities?
Join the community