How to ignore uppercase/lowercase when selecting pathname? JS/Jquery

Posted by Noemi on Stack Overflow See other posts from Stack Overflow or by Noemi
Published on 2010-06-08T01:32:25Z Indexed on 2010/06/08 1:52 UTC
Read the original article Hit count: 240

Filed under:
|
if (pathname == "/" || pathname == "/default.asp")

in js using jquery library.

I want this to catch "Default.asp" as well as "DeFaULT.asp" and "default.asp"

halp.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery