Quote:
Originally Posted by xelawho
fair enough. seems overly cautious though... if the string is index.html?car=
then window.location.search.substring(1).split("=")[1]
will return blank, which obviously != "mercedes", so why?
|
I just don't like to see the practice of assuming the existence of an object or element, even if it's not fatal.