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

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -