request.imageX
NES2+Syntax
request.imageX
Description
The imageX property of the request object contains the x-coordinate of the imagemap request sent from the browser. These requests come in the following form, where x is the numeric x-coordinate and y is the numeric y-coordinate:
http://www.purejavascript.com/clickthru.html?x,y
Example
Listing 8.106 pulls out the x and y coordinates passed in the request and writes them to the user's page.
Listing 8.106 Accessing the imageX Property
<SERVER> // Write the imageX and imageY properties to the page. write('Y-coordinate of ISMAP: ' + request.imageY + '<BR>'); write('X-coordinate of ISMAP: ' + request.imageX); </SERVER> |
Get Pure JavaScript now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.