Wednesday, July 29, 2009

Make javascript variables global

No comments:
To make a variable just define it outside the scope of your functions
Eg:
var myvar=5;
fun();
myvar=1;
fun();
function fun()
{ //code goes here.
alert(myvar);
}

Saturday, July 25, 2009

Friends

No comments:
Time might lead me some where away from you and fate may wipe me away from your memory.But i will always be thankful that once in lifes journey we became friends.