I want to display a loading icon on page loading.
I am using HTML, CSS and JS code.
<a href="http://example.com/page/">Page Now</a>
<a href="http://example.com/page/#">Back to Top</a>
<a href="http://example.com/page2/">Page Other</a>
Do you have to worry about other URLs including a #? If not, you can do your binding on this selector:
That'll only target links that don't include a # in the URL. You can also use this
To target any link that doesn't start with #, and
For any link that doesn't end with #. Hopefully one of these helps!