instanceof testcase #1

This testcase calls windowRef.objTest() passing two local variables as the argument. The variable windowRef changes as per instructions below. Output is written to the textarea. All test code can be found through the source of this document.

  1. Set windowRef to current window:

  2. Test the two objects:

  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:

Go to the second testcase which calls objTest() locally but alternates the argument.

Output