I have the following problem, I have an image map , where when clicking the coordinates the result appears within a <input type="text" />
, however I can only put the name of one of the coordinates clicked. p>
I would like to know how to enter more than one coordinate name within this same input
.
Follow the code:
<html>
<head>
<script type="text/javascript">
function local(name){
document.myform.post_localp.value = name
}
</script>
</head>
<body>
<form name="myform" action="" method="POST">
<input type="text" name="post_localp" size="20">
<div id="anterior" style="display:none" class="imgAnterior">
<img src="imagem.png" alt="anterior" usemap="#tutorials">
<map name="tutorials">
<area shape="rect" coords="142,284,185,308" href="#" alt="JE" onclick="local('J.E')">
<area shape="rect" coords="209,284,249,308" href="#" alt="JE" onclick="local('J.D')">
</map>
</div>
</body>
</html>