I clicked on it and the form is submited, along with a query string appended like x=1&y=2
to the url targetted by the form's action.
Why?
I clicked on it and the form is submited, along with a query string appended like x=1&y=2
to the url targetted by the form's action.
Why?
from eskimo.com
The
x
andy
values are the co-ordinates of the mouse pointer relative to the element when clicked.From the HTML 4.02 specification:
IE and Firefox will both create different variables when submitting from an image submit button. My advice is not to rely on any of them being present in your form processing. If you must (to determine which of multiple buttons was pressed) you will need to check for multiple variables.
It behaves like a mini imagemap. This is by design.
Those are the coordinates that you clicked on an image, a property of the "image" type of input control. You can ignore those if you don't need them.