Adsence750x90

Thursday, May 1, 2008

How to Create Namespace in JAVASCRIPT

Creating Namespace in JAVASCRIPT

between script tag write this code

if(typeof(raju)=='undefined')
{raju={};}

raju.TestFunction=function()
{
alert("Raju.M");
}
div onclick="raju.TestFunction();" raju /div

No comments: