Thank you Michal!
On Nov 16, 10:10 am, Michal <[EMAIL PROTECTED]> wrote: > I thought that for HTML elements, you should always include the $, as > for IE this is required to ensure the mootools methods are present. > This includes document.body, so you should use $(document.body) rather > than document.body. > > However, for the window object, I thought this is not required. So you > can just use window.getScrollSize() (and indeed I have done, with no > apparent problems). In fact, as the window object isn't a HTML element > (as far as I know), I would think using $ might even cause some > problems, but I'm not sure. > > However, maybe someone with more MooTools experience will contradict > me... > > Michal. > > On Nov 15, 2:20 pm, stratboy <[EMAIL PROTECTED]> wrote: > > > Hi! I was wondering: what's the best way to use mootools methods on > > the window object? > > > Should for example write $(window).getScrollSize() or > > window.getScrollSize() ? > > > And what about document.body? > > > Show me the right way please! ;)
