38
rated 0 times
[
39]
[
1]
/ answers: 1 / hits: 15383
/ 8 Years ago, wed, june 1, 2016, 12:00:00
How can I check whether the page url contains a '#' character plus some random digits
e.g. www.google.de/#1234
if( window.location.href.indexOf('#') > 0 ){
alert('true');
}
Does indexOf support Regular Expressions?
More From » regex