Quantcast
Channel: What means when website php link adds "?" to the end? - Stack Overflow
Viewing all articles
Browse latest Browse all 2

What means when website php link adds "?" to the end?

$
0
0

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


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images