javascript - Why this window.opener.reload is not a function error? -
i have snippet this.
if (window.opener != null) { window.opener.reload(); }
when called, firebug shows,
typeerror: window.opener.reload not function
and chrome console says,
uncaught typeerror: object [object global] has no method 'reload'
what wrong?
p.s: typeof window.opener
"object"
.
reload
method of location
object, not window
object.
window.opener.location.reload();
Comments
Post a Comment