Hi, I would like to make my IF STATEMENT to look for a Class name in the HTML called "breadcrumb" instead of looking for the Title Name of the page. This is the code a was up to: <script type="text/javascript"> if (document.title == "Rugs"){ document.getElementById('content').className='template-list'; } else { document.getElementById('content').className='template-details'; } </script> Thanks.
if you're searching class name you can use yui dom method: http://developer.yahoo.com/yui/examples/dom/getelementsbyclassname.html