Podes usar la propiedad "value"
Un ejemplo, además usando eventos por si lo necesitas:
Código HTML:
Ver original<input id="texto" type="text" value="un texto" />
Código Javascript
:
Ver original/*
function cambiaTexto(elem) {
elem.value = "otro texto";
}
*/
document.getElementById("texto").onfocus = function(){
this.value = "otro texto";
//o bien: //cambiaTexto(this);
}
Saludos,