I want to have a standard menu on on the pages on my website. I'm using an include file as shown below:\[code\]<div class="header box"><ul class="nav box"><li class="current" id="home"><a href="http://stackoverflow.com/questions/12792299/index.php" onclick="current('home')">Home</a></li><li class="" id="onlineSchedule"><a href="http://stackoverflow.com/questions/12792299/onlineSchedule.php" onclick="current(this)">Online Schedule</a></li><li class="" id="partners"><a href="http://stackoverflow.com/questions/12792299/partners.php" onclick="current(this)">Partners/Centers</a></li><li class="" id="services"><a href="http://stackoverflow.com/questions/12792299/services.php" onclick="current(this)">Services</a></li><li class="" id="products"><a href="http://stackoverflow.com/questions/12792299/products.php" onclick="current(this)">Products</a></li><li class="" id="newsHighlights"><a href="http://stackoverflow.com/questions/12792299/newsHighlights.php" onclick="current(this)">News/Highlights</a></li><li class="" id="signup"><a href="http://stackoverflow.com/questions/12792299/signup.php" onclick="current(this)">Sign Up!</a></li><li class="" id="feedback"><a href="http://stackoverflow.com/questions/12792299/feedback.php" onclick="current(this)">Feedback</a></li></ul>\[/code\]But I want the class to change whenever I click a different page as the "current" class highlights the link in the menu. How do I do this? I tried Javascript as shwon below but it doesn't work... thnx in advance\[code\]function current(page){ //alert(page); document.getElementById("home").setAttribute("class", ""); document.getElementById("onlineSchedule").setAttribute("class", ""); document.getElementById("partners").setAttribute("class", ""); document.getElementById("services").setAttribute("class", ""); document.getElementById("products").setAttribute("class", ""); document.getElementById("newsHighlights").setAttribute("class", ""); document.getElementById("signup").setAttribute("class", ""); document.getElementById("feedback").setAttribute("class", ""); document.getElementById(page).className += "current"; var temp = document.getElementById("home").getAttribute("class"); alert(temp);}\[/code\]