I just want to test the URL for a question mark ? however I keep getting an invalid quantifier error message...
alert(window.location.href.search('?'));
I then tried things like...
alert(window.location.href.search('\?'));
/
alert(window.location.href.search(\?));
...without any luck.