I'm using/experimenting with Zen on my drupal site, and have just inserted a js file named alert.js into my theme's js folder. The file has the following code:
(function ($){
Drupal.behaviors.kiwiAlert = {
attach: function(){
alert('Hello World');
}
};
})(jQuery);
I followed up by making the necessary changes in my .info file, by inserting the following snippet:
scripts[] = js/alert.js
Since my site is in development mode I've set the cache to be cleared/theme registry to be rebuilt upon each page load, but just in case I cleared my cache again. And nothing, the alert message doesn't show, why is this not working??
PS: I also tried the following code in the js file, in the same context, but to no avail :C
alert("Hello World!!");
Any and all answers will be much appreciated :)