Results 1 to 5 of 5
May 7, 2007, 21:12 #1
- Join Date
- Jan 2005
- 0 Post(s)
- 0 Thread(s)
pass itself as an object to function
how could i pass a self object into a function and then use it?
like now, i have this:
i have tried this, self and top instead of parent but all of those don't work either. moreover, i thought self may refer to the anchor tag object itself.
my idea doing this is so that i can save trouble going through the document.getElementById('testid').style..... which is very long. and having it able to pass itself into the function could make the function more dynamic and cater for not just one div but other div as well.