indeed it is
On Jan 19, 3:53 am, Krommenaas wrote:
> is this also true of document.ready?
>
> On Jan 14, 9:24 pm, Ricardo Tomasi wrote:
>
> > In the old-fashioned you couldn't have more than one event handler:
>
> > window.onload = function(){ .. }
>
> > but using jQuery's bind('load', function
is this also true of document.ready?
On Jan 14, 9:24 pm, Ricardo Tomasi wrote:
> In the old-fashioned you couldn't have more than one event handler:
>
> window.onload = function(){ .. }
>
> but using jQuery's bind('load', function(){}) you're using the new
> standards-based event system, via ad
In the old-fashioned you couldn't have more than one event handler:
window.onload = function(){ .. }
but using jQuery's bind('load', function(){}) you're using the new
standards-based event system, via addEventListener (attachEvent on
IE), in which 'onload' is not a property of the window object
strange, but I should have checked. thanks!
"However, I assume if I do this in two different .js files, the second
one will
replace the first one"
and your assumption is not correct
< javascript1.js ->
$(window).load(function() {
alert("Alert in One");
});
<-->
< javascript2.js ->
$(wi
5 matches
Mail list logo