Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

get current html file name javascript

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

PREVIOUS NEXT
Code Example
Javascript :: cm to feet javascript 
Javascript :: enviar formulario por ajax 
Javascript :: Auto open browser when run dev nextjs 
Javascript :: javascript count character in string 
Javascript :: javascript duplicate an array 
Javascript :: ping ip address using javascript 
Javascript :: java script login system 
Javascript :: else if javascript 
Javascript :: sum all values of an array 
Javascript :: insert element in specific index javascript 
Javascript :: javascript array remove middle 
Javascript :: react focus 
Javascript :: express command not found mac 
Javascript :: how to get a random statement from an array in javascript 
Javascript :: javascript round off 
Javascript :: datepicker select date programmatically bootstrap 
Javascript :: remove element from array javascript by index 
Javascript :: vue js tutorial 
Javascript :: base64 nodejs image 
Javascript :: get minutes and seconds of long seconds 
Javascript :: js for loops 
Javascript :: how to display image before upload in jhtml 
Javascript :: set datatable with jquery success return value 
Javascript :: axios get image 
Javascript :: get last letter of string javascript 
Javascript :: canvas rounded corners on image 
Javascript :: Javascript How to push a key value pair into a nested object array 
Javascript :: firebase admin delete user 
Javascript :: get the last array element javascript 
Javascript :: next-auth with linkedin provider 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =