jquery - creating an javascript object at global level -
i trying create object below
var x = function x() {};
does create object @ window level/global level.is way of using ?
if written in global name space.. meaning in loaded script directly or in script tag global.
but if made inside, example, dom ready event or onlad event handlers wont global.
using window.variable makes global if you're inside block.
Comments
Post a Comment