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
Post a Comment