Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

check the doc name in javascript

var path = window.location.pathname;
var page = path.split("/").pop();
console.log( page );
Comment

PREVIOUS NEXT
Code Example
Javascript :: css customize console.log 
Javascript :: javascript link to go back 
Javascript :: html div scroll 
Javascript :: browserrouter current path 
Javascript :: heroicons reactjs 
Javascript :: mongoose model find all documents with ids in array 
Javascript :: generate random password javascript 
Javascript :: get age using moment 
Javascript :: js get viewport width 
Javascript :: js tolocalestring without seconds 
Javascript :: regex to check non empty string 
Javascript :: disable yellow box react native 
Javascript :: document on click dynamic element 
Javascript :: update nodejs version in ubuntu 
Javascript :: jimp get image size 
Javascript :: get collection in ascending order firestore 
Javascript :: js queryselector names 
Javascript :: jest timeout 
Javascript :: when do we use scroll listener in javascript 
Javascript :: javascript copy text to clipboard 
Javascript :: show and hide div tag based on checkbox selection using jquery 
Javascript :: firstElementChild jquery equivalent 
Javascript :: remove word from string javascript 
Javascript :: nexe error: vcbuild.bat nosign release x64 exited with code: 1 
Javascript :: js regex domain name 
Javascript :: using material ui icons in react 
Javascript :: javascript get origin url 
Javascript :: javascript get text between two words 
Javascript :: install react with old version of node 
Javascript :: get pods on specific node 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =