Cursor position


How can I get the cursor position relative to the page, and store it in
a variable? (Preferably without using javascript)



Google gave this as one of the first hits:

I don’t see how you can do this without javascript, unless your talking
about the click position on a submit image:

"The image input type specifies a graphical submit button. The SRC
attribute must be included to specify the URI of the image. The ALT
attribute should be used to give replacement text for those not loading
images. ALT is a new addition in HTML 4.0; many browsers rely on either
the NAME or VALUE attribute as alternate text, so authors should use all
three attributes for the same purpose where possible. The topic of
graphical submit buttons for text users is discussed in detail in the
article INPUT TYPE=IMAGE for text users?.

“When the graphical submit button is clicked, the coordinates of the
click are sent with the form submission as name.x=x-value and
name.y=y-value where name is the value of the NAME attribute, x-value is
the click’s pixels from the left of the image, and y-value is the
click’s pixels from the top of the image. The USEMAP attribute combined
with TYPE=image defines a client-side image map that can be used with
client-side scripting, but this method is poorly supported. The USEMAP
attribute gives the URI of the defining MAP.”

Taken from


On Wednesday, February 22, 2006, at 8:56 PM, blaimue wrote:


–Dave T. - Email list management - Apps for your hand-held