This testcase calls windowRef.objTest(windowRef.variable) so the variable is local to the function that tests it. All output is again found in the textarea and the source of this shows the test code.
Set windowRef to current window:
Test the two objects using the objTest() function:
Set windowRef to 'testFrame':
Test the two objects:
Open a child window and let windowRef point to it:
Set windowRef to parent frameset: