mostrar de un text
<html>
<head><title>vianeth
</title>
</head>
<body>
<script languaje="javascript">
var mensaje = prompt("digite el elemento");
if(mensaje=="x")
{
window.alert("equiz");
}
if(mensaje="y")
{
window.alert("yes");
}
</script>
</body>
</html>