Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

check file name in url

        let url = window.location.pathname;
        let filename = url.substring(url.lastIndexOf('/')+1);
        console.log("filename",filename);
		alert(filename);
Comment

PREVIOUS NEXT
Code Example
Javascript :: hide html elements 
Javascript :: how to get data from for loop in react native 
Javascript :: getelementbyclassname get multiple class 
Javascript :: Updating javascript object property 
Javascript :: xml vs json 
Javascript :: setimout 
Javascript :: how to seperate header body and footer in node 
Javascript :: addAndRemoveClassJquery 
Javascript :: Expresion regular para validar Dirección URL 
Javascript :: get numbers from a string 
Javascript :: react classname 
Javascript :: mongoose find in array 
Javascript :: Add jquery in extension 
Javascript :: Different views for Desktop and mobile Angular 
Javascript :: check if date is less than today moment 
Javascript :: sumar un mes a una fecha javascript moment 
Javascript :: nest js global endpoint 
Javascript :: how to send csrf middleware token in django ajax 
Javascript :: get character length javascript 
Javascript :: rivets bind 
Javascript :: browser support 
Javascript :: spread operator react 
Javascript :: javascript arrays 
Javascript :: ReactDOM render in v18 
Javascript :: ojs link contact page 
Javascript :: convert boolean to string javascript 
Javascript :: .change() in pure js 
Javascript :: get the key of largest json array value 
Javascript :: mern heroku Error: ENOENT: no such file or directory 
Javascript :: crontab validate regex 
ADD CONTENT
Topic
Content
Source link
Name
5+3 =