Posts by maloky • 51 points
1 post
-
5
votes2
answers31518
viewsA: Picking the first characters of a string
In this case I would separate the strings from the URL and check the value. // Separa a string a partir do char "/" e retorna o 1 valor var str = window.location.pathname.split('/')[1] if (pageName…
javascriptanswered maloky 51