开发者

closing the current popup window on button click in apex using salesforce

i am in a strange situation

I have an apex page inside that page there is a button on the click of which i call a a javascript method. From this method i call window.open(url) and open a new popup window.

Now this new window is also an apex page. This window contains a button.on the click of this button i want to close the current popup window using javascript.

can anybody suggest me what should i do?

i have tried:

**

window.close();
self.close();

**

I have tried with apex command button as well as with the HTML button.

but still window cant 开发者_Python百科be closed.


Perhaps same issue as this: In Visualforce pages, is it possible to use the command line in the Firebug console?

So try disabling development mode on your user.

Søren

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜