<input id="boton" class="boton2" type="submit" value="Aceptar" name="submit">
alert(document.getElementById("boton").value);