/    Sign up×
Community /Pin to ProfileBookmark

window.opener question

I have this little function that applies a template to an account. It is an asp page and there fore is needed to refresh to execute the code. On the refresh i would like to activate a javascript function on the opener but I keep getting problems with the being allowed to access the opener javascript function. The error is “…Permission denied to get property window.example()” Any thoughts if this can be cured. If not I will have to have the pop up pop up a window to execute the apply template function then. Thanks for the reply.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@toicontienMar 29.2007 — The window.opener object will only exist if the current window was opened by another window. You will get a JavaScript error if you try to access anything in window.opener when the window running the current JavaScript wasn't opened by another window.

You'll have to post the HTML and JavaScript for the page that gets the JavaScript error, and if there is a window that opened the page that gets the error, we'll need to see the HTML and JavaScript for that page too.
×

Success!

Help @thechasboi spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...