You can find which element is accessed using getters / setters. However, the setter method doesn't seem to work with chrome ... it works with the latest minefield [firefox beta], though ... so you can check this out, I think =)
myElement.style.__defineSetter__("backgroundColor", function(val) { var cur = arguments.callee; var callLog = ""; while(cur != null) { callLog = cur.caller + "\n" + callLog;
Oh, but that will not allow you to "set" a variable. To do this, you define a dummy variable and set it. Then, when you define your getter [using __defineGetter__ ], you return that value
Warty source share