I need to Duplicate X button behavior in javascript code.
My domains are different so I'm getting an access denied message when using frameelement. But when I click on the X - it closes the window and works.
So, is there javascript code that does exactly what clicking the "X" button does?
1 Answer, 1 is accepted
0
Georgi Tunev
Telerik team
answered on 29 Mar 2010, 12:37 PM
Hi Jomey,
What the X button does is to get a reference to the RadWindow object and call its close() method. When the content page is from another domain however, the browsers' security mechanism will not allow you to do that - otherwise it would be a major security hole.
Greetings,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items.