Javascript code to detect current page
<p>Is there a javascript code that can detect what page my user is on and then add a class to a <code>ul</code> item?  I want to put my menu in my static HTML website in a separate file and then use PHP include to add it, but I want <code>class="current"</code> for the current page.</p>
