Search
 
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
Name
5+7 =