Ver Mensaje Individual
  #1 (permalink)  
Antiguo 02/07/2011, 23:46
tonydx16
 
Fecha de Ingreso: febrero-2011
Mensajes: 233
Antigüedad: 13 años, 3 meses
Puntos: 4
Pregunta mostrar texto

Estoy empezando en javascript y lo que quiero saber es como hacer que el texto se coloque (al hacer click) al costado del enlace o abajo... pero no que "ocupe" todo el espacio de la página . ¿me dejo entender?

Código HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin t&iacute;tulo</title>
</head>
<script language="javascript">

function sime(){
document.write('texto');

}
</script>
<body>
<form>
<a href="#" onclick="sime()">enlace</a>
</form>
</body>
</html>