JavaScript - Checking string
<p>Hi<br />
I want to check if every words of the current URL path is match with my expected string.
The current URL <a href="http://www.example.com/category/product/htc-desire" rel="nofollow">http://www.example.com/category/product/htc-desire</a></p>

<pre><code>var path = location.pathname;
the path must match every words of "/category/product/htc-desire"
</code></pre>

<p>How can I do it, thanks.</p>
