Answers for "get document name javascript"

2

check the doc name in javascript

var path = window.location.pathname;
var page = path.split("/").pop();
console.log( page );
Posted by: Guest on May-31-2020
0

javascript get name of element

var name = element.getAttribute("name");
Posted by: Guest on August-13-2021

Code answers related to "get document name javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language