Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove Hash when reloading page?

Im using a hash to switch through my image slider. when i reload the page and the hash is set to e.h. #3 there is no picture. when the gallery slides automatically after some seconds it shows the next one... so for a few seconds there is nothing.

is there a way to check for a hash when loading the page and remove it? i just want to care about the persons who bookmark the page with the hash.

Greetings.

edited: hashtag --> hash (thank you.)

like image 486
dichterDichter Avatar asked Jan 18 '23 10:01

dichterDichter


1 Answers

location.hash = ""

Run that on page load.

like image 96
Joseph Marikle Avatar answered Jan 25 '23 22:01

Joseph Marikle