DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
how to get uri segment in js
const pathArray = window.location.pathname.split("/"); const segment_1 = pathArray[1];
Source by redfern.dev #
PREVIOUS
NEXT
Tagged:
#uri
#segment
#js
ADD COMMENT
Topic
COMMENT
Name
5+7 =
Submit