I am developing a website and n the website's main page I have a floating window (like a popup inside the main page) with a button that calls a function with an alert("hello")
just to test if it works.
The problem is that when I click the button, the JavaScript alert pops up and after I click "OK" the website reloads and appends a "?" to the end on the link!?!
Example: first I have: "www.mylink.main.php" and when I click "OK" I get "www.mylink.main.php?" and the website reloads (like if I had reloaded the browser)...
Why is this happening??
I also noticed that if I change the link to "www.mylink.main.php?#" everything seems to work fine!!
This bug is killing me lol