Basically I want to check what url the user is on and compare it to a default value and then run a statement
Let's say my url is https://stackoverflow.com/questions/ask, I'm trying to do this, and it's not working:
<script type="text/javascript">
if(document.location.href('/questions/ask') > 0)
{
[do this];
}
Thanks for the help(noob question I know)