Javascript, jQuery: external file
Posted
by Patrick
on Stack Overflow
See other posts from Stack Overflow
or by Patrick
Published on 2010-05-18T16:42:27Z
Indexed on
2010/05/18
16:50 UTC
Read the original article
Hit count: 616
JavaScript
|jQuery
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
© Stack Overflow or respective owner