4
I’m getting my url like this:
var url = window.location.href;
I have the following return: http://localhost/financial/pages/releases.php? local=Iguacu.
But I don’t want the GET part, I wanted to get the url like this: http://localhost/financial/pages/releases.php
How could I?
What is the reason for this? Anyway, to not have the parameters in the url, send by the POST method. Or just want to extract the url without parameters? If so, invoke the property
pathname
. ex:window.location.pathname
– Daniel Omine