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 -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -