You are here: irt.org | FAQ | JavaScript | Image | Q35 [ previous next ]
<a href="thisdocument.html"><img src="image.gif" border="0" ismap></a>
<script language="JavaScript"><!--
str = location.search;
if (str == "")
document.write("<p>No coordinates specified.");
else {
commaloc = str.indexOf(",");
document.write("<p>The x value is " + str.substring(1, commaloc));
document.write("<p>The y value is " + str.substring(commaloc+1, str.length));
}
//--></script>