javascript - Changing the global scope in JS -


say have iframe running inside of parent window.

i have single script loaded inside iframe , want script have access variables inside of parent.

rather saying window.parent.x time, possible declare:

window= window.parent; 

inside of iframe?

window protected variable js, not able override it. can, however, store window.parent in var , use that:

var parentwindow = window.parent; 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

spring cloud - How to configure SpringCloud Eureka instance to point to https on non standard port -

javascript - Bootstrap Popover: iOS Safari strange behaviour -