Marzo 8 del 2017
FUNCIONES.
<sccript>
function sumar ( ){
var a=ParseInt (prompt ("a"));
var b= ParseInt (prompt ("b"));
alert (a+b);
} </script>
<body>
<imput type = "button"
value = "oprimir"
onclick = "sumar ( )">
<img src ="_" onclick = "sumar( )"></body>
STREET VIEW: Visualiza calles.
GOOGLE MAPS: Visualiza el mapa.
FUNCIÓN EXTERNA.
function muestra Mensaje ( ) {
alert (´Gracias por pinchar´);
}
<imput type ="button" value ´pinchar y veras´)}
onclick = "Muestra mensaje ( )"/>


0 comentarios:
Publicar un comentario