instanceof testcase #3

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.

  1. Set windowRef to current window:

  2. Test the two objects using the objTest() function:

  3. Set windowRef to 'testFrame':

  4. Test the two objects:

  5. Open a child window and let windowRef point to it:

  6. Test the two objects:
  7. Set windowRef to parent frameset:

  8. Test the two objects:

Output from test script