<HEAD>
<script>
function v(e){
alert('reikšmė: ' document.getElementById(e).value)
}
function u(o){
document.getElementById(o).value = window.prompt('nauja reikšmė','');
}
</script>
</head>
<body>
<input id="es">
<input type="button" onclick="v('es')" value="žiūrėti tekstą"/>
<input type="button" onclick="u('es')" value="keisti tekstą"/>
</body>