Well my question for some will be basic but it turns out that I am doing a program that increases a button pressed, all right up to here, the problem is that
I want that increment to be printed in an html input since this I'm doing it with alerts:
here the code:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
</style>
<meta charset="utf-8">
<title></title>
</head>
<body>
<form class="increment" action="index.html" method="post">
<input type="button" name="" value="contador" onclick="incremen()">
<input type="text" name="" value="" id="resultado">
</form>
<script type="text/javascript">
var contador=0;
function incremen() {
contador++;
alert(contador);
}
</script>
</body>
</html>