Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Javascript problem with "opener" object

Hello again,

In my quest to reuse some automatic generated bsp code to my own advantage, i encounter a problem with the javascript "opener" object.

I open a new window(win2) for a value help, this should return a value to the calling window(win1). It does so by calling a function in win1. My problem is that i get an error, stating that access to win1 is denied.

opener.focus() works: it sets focus on win1

so the opener object seems fine, pointing to the richt window

opener.functionWin1() does not work:

when i want to call a function from win1 i get the message "access denied", this also happens when i want for instance call a propertie of win1 with for example alert(opener.location);

Does anybody know if there is a special parameter i should set, before i can call functions on the opener page? Or has anybody encountered the same pronlem?

Kind regards,

Martijn de Jong.

Former Member
Not what you were looking for? View more on this topic or Ask a question