The function context (this) is not an attribute of the function, but rather, of
how the function is invoked. This is a very important concept in OO JavaScript. The same function can be invoked with different function contexts depending upon how it is called.
In your example, you are calling the function via its reference as
print which is a property of the object literal that you assigned to
test. Thus, that object literal, not the
String instance is the function context.
By the way, please be sure to use UBB code tags when posting code to the forums. Please
read this for more information.
[ October 18, 2007: Message edited by: Bear Bibeault ]