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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -