I’m trying to figure out how to make this code not be case sensitive when it comes to the “default.asp” line. The code below in the head of a XHTML template and adds the CSS info only on the homepage, which is domain.com or domain.com/default.asp. It works just fine, but when I visit domain.com/DEFAULT.asp it doesn’t work. How do I make it case insensitive?
[CODE]<script type=”text/javascript”>
//<![CDATA[
var onHomePage = (location.pathname == “/”) ||
(location.pathname.indexOf(“/default.asp”) != -1);
if (onHomePage)
document.writeln(“n<style type=’text/css’>#content_area {background-color:#dddddd;}</style>nn”);
//]]>
</script>