Javascript, jQuery: external file
- by Patrick
hi,
I'm loading an external js file in the header of my html document and I have 2 questions about it:
1) I've added alert("ok"); in my external file but I cannot see any message. I guess because this file is loaded before the page is completed... or something like this (in the header), right ?
2) Then I added the jQuery code:
$(document).ready( function() {
alert("ok");
});
but still no signal of life...
what am I doing wrong ?
thanks