<input type="button" onClick="funcion(document.getElementById('ID').value)">
<button type="button" onClick="funcion(document.getElementById('ID').value)">TextoDelBoton</button>