After my last question : Set opacity with js or close modal window
The function works, the modal window is well hidden. But when this modal window is created, the website URL becomes : http://url.com/#idModal
If the div is hidden, the URL stays with #idModal and I can't open an other modal window.
Is there any way to recover the base URL? I tried with window.location
but it reloads the page with #idModal...
Thank you!