Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Javascript
check the doc name in javascript
Sydney Maples
Programming language:
Javascript
2021-05-28 01:46:54
0
Q:
check the doc name in javascript
Eileen Dolan
Code:
Javascript
2021-04-21 07:43:16
var path = window.location.pathname; var page = path.split("/").pop(); console.log( page );
2
Tags
name
java
javascript
check
Related
if text exists in element using javascript
js get url parameter
get parameter from the actual url javascript
javascript get user preferred language
get current url js
javascript get element by name
javascript nameof
javascript get current url
get filename from url js
javascript get url path
javascript find type of variable
get variable name javascript
javascript get parameter
check if has name javascript
js get browser name and platform
how to check type of value in a java script file
js get meta-tag name
how to know type of dom element in js
New to Communities?
Join the community