JavaScript - llamar func javascrpt dese href

 
Vista:

llamar func javascrpt dese href

Publicado por Racsus (11 intervenciones) el 24/12/2002 10:34:21
Hola

lo dicho, como puedo llamar una función javascript desde un href haciando un click?

gracias
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:llamar func javascrpt dese href

Publicado por Carlos Vargas (11 intervenciones) el 25/12/2002 03:21:03
<html>
<head>
<title>Untitled</title>
<script language="JavaScript">
function mensaje(){
alert("esta es una prueba")
}
</script>
</head>
<body>
<table>
<tr>
<td><a href="javascript:mensaje()">Presiona aqui</a></td>
</tr>
</table>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:llamar func javascrpt dese href

Publicado por Carlos Vargas (11 intervenciones) el 25/12/2002 03:23:07
<html>
<head>
<title>Untitled</title>
<script language="JavaScript">
function mensaje(){
alert("esta es una prueba")
}
</script>
</head>
<body>
<table>
<tr>
<td><a href="javascript:mensaje()">Presiona aqui</a></td>
</tr>
</table>
</body>
</html>
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar