Closing Active Web Page Tab

Origam has a feature, which allows opening HTML pages as tabs inside the Flash UI. We have introduced the possibility of requesting FlashUI via JavaScript to close the opened tab. To invoke a request a single line of JavaScript code is needed. Since the HTML pages are opened in the internal frames example code contains access to the main document. Flash UI has usually the id portal.

Invocation of closeActiveTab from internal frame

window.top.document.getElementById("portal").closeActiveTab();