1
I need to check the URL from a Javascript page. I am displaying the following Alert:
alert(window.location.href.toString())
The following ULR is displayed on Alert :
http://localhost:9577/Painel/Index
I cannot compare the entire string returned because the server will not always be localhost:9577. How do I check only the directory /Painel/Index regardless of server ?

pathname. That’s what I was looking for. Obgrigado
– Raphael Prado de Oliveira