Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/02/2012, 08:32
Avatar de truman_truman
truman_truman
 
Fecha de Ingreso: febrero-2010
Ubicación: /home/user
Mensajes: 1.341
Antigüedad: 14 años, 2 meses
Puntos: 177
Diferencia entre funcion dentro y fuera del head

Hola a todos.
Quisiera saber cual es la diferencia de llamar funciones dentro y fuera del head

Ejemplo

Dentro del head

Código HTML:
<html>
   <head>
   <script type="text/javascript">
	$(document).ready(function(){

        })
   </script>
   </head>
   <body>
   </body>
</html> 
Fuera del head (o al final)
Código HTML:
<html>
   <head>   
   </head>

   <body>
      <!-- contenido HTML o PHP -->
      <!-- contenido HTML o PHP -->
      <!-- contenido HTML o PHP -->
      <!-- contenido HTML o PHP -->
      <!-- contenido HTML o PHP -->

      <script type="text/javascript">
         $(document).ready(function(){

          })
      </script>
   </body>

</html> 
Gracias!



.
__________________
la la la