jueves, 9 de abril de 2015

funciona anonima and self invoking

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Sumatorias</title>
</head>
<script type="text/javascript">
    (function(){
        alert('hola Mundo');
    })();



</script>

<body>

<input type="button" value="Clic" onclick="alert('la suma es =' + alertit(10,20));">
   
</body>
</html>

No hay comentarios:

Publicar un comentario