Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Detect on what page are you with jQuery Re: Detect on what page are you with jQuery

#128575
VladimirKrstic
Participant

@JohnMotylJr Thank you man i owe you a drink. Still i had to change one line to make it work. Your code works in Codepen but don’t works in browsers with this line it’s vice versa.

a = a.substring(a.lastIndexOf(‘/’));

Thanks again! Cheers!