Created
January 8, 2012 14:55
-
-
Save DavidBruant/1578598 to your computer and use it in GitHub Desktop.
Object.getOwnPropertyNames equality with same-origin iframe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ogopn = Object.getOwnPropertyNames; | |
var iframe = document.createElement('iframe'); | |
iframe.src = location; | |
document.body.appendChild(iframe); | |
console.log(iframe.src); | |
var iframeOgopn = iframe.contentWindow.Object.getOwnPropertyNames; | |
console.log(ogopn, iframeOgopn) | |
console.log(ogopn === iframeOgopn); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment