Skip to content

Instantly share code, notes, and snippets.

@brehaut
Created December 21, 2011 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brehaut/1504352 to your computer and use it in GitHub Desktop.
Save brehaut/1504352 to your computer and use it in GitHub Desktop.
ifr = document.createElement("iframe");
document.body.appendChild(ifr);
ifr.contentDocument.write("<script language='javascript'>window.Object2 = Object;</script>");
o = new ifr.contentWindow.Object2();
o instanceof Object; // => false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment