PrepAway - Latest Free Exam Questions & Answers

How can you now access the relative coordinates of the mouse click?

An HTML form contains this form element:
<input type=”image” name=”myImage” src=”image.png” />
The user clicks on the image to submit the form. How can you now access the relative coordinates
of the mouse click?

PrepAway - Latest Free Exam Questions & Answers

A.
$_IMAGE[‘myImage’][‘x’] and $_IMAGE[‘myImage’][‘y’]

B.
$_POST[‘myImage’][‘x’] and $_POST[‘myImage’][‘x’]

C.
$_POST[‘myImage.x’] and $_POST[‘myImage.y’]

D.
$_POST[‘myImage_x’] and $_POST[‘myImage_y’]


Leave a Reply

Your email address will not be published. Required fields are marked *