javascript - $(window).load() works differently on IE and FF -
I was working with $ (window) .load ()
... A Problem . Actually, the first window should be loaded according to this function and then any implementation under this function should start working. It works fine for IE but not for FF. This is working in FF like $ (document) .ready ()
Any alternative option, or due to this, FF behaves like this, can suggest. Your second method is the preferred way of working for both FF and IE:
Pre> $ (document)) .ready (function () {/*.code.*/});
or short-hand form:
$ (function () {/*.code.*/});
Comments
Post a Comment