gorilla
02-02-2007, 02:01 PM
Hi!
obj=new Object()
obj.prop='hello'
obj.func=function()
{
alert(this.prop)
setTimeout(this.func,10)
}
obj.func()
I think this should keep alerting 'hello' but for some reason it doesn't. Can you help me out with this?
Thank you!
obj=new Object()
obj.prop='hello'
obj.func=function()
{
alert(this.prop)
setTimeout(this.func,10)
}
obj.func()
I think this should keep alerting 'hello' but for some reason it doesn't. Can you help me out with this?
Thank you!