Home
Services
Portfolio
Blog
About
Contact
Archives
Blog
2010
February
2009
February
March
April
2008
January
February
March
May
2006
January
February
March
April
May
June
July
August
September
October
2005
February
March
April
July
September
October
November
December
2004
January
February
August
September
October
2003
November
December
Home
>
Blog
>
2008
>
March
>
20
March 20, 2008
Javascript: Passing 'this' to inline function
Create a new variable within the parent function:var me = this;use 'me' in new functionExample: function parentFunction() { this.message = 'Hello World!'; var me = this; var childFunction = function() { alert(me.message); } childFunction(); }
Read more