Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check first path of url js

var first = $(location).attr('pathname');

first.indexOf(1);

first.toLowerCase();

first = first.split("/")[1];

alert(first);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #path #url #js
ADD COMMENT
Topic
Name
6+9 =