Forum Discussion
Jinshu_134425
Nimbostratus
Oct 06, 2015Irule for closing the connection
Hello Friends,
I am using a decision box before F5 APM logon page for disclaimer and my requirement is to close the window if the user click on decline? Is it possible to do that with irule? If ...
Michael_Jenkins
Cirrostratus
Oct 06, 2015You may not be able to close the browser window as expected using javascript (at least not across all browsers) due to security restrictions for the
window.close() function. I believe most browsers today will only allow you to close a window that has been opened by script (see here for example). Otherwise the command will most likely do nothing (though I think in IE it will prompt the user to close the tab/window) (see here for a StackOverflow answer about the question).
What you may need to end up doing it directing the user to a custom deny page if they decline and customize it through the APM configuration section (Access Policy >> Customization) to tell them to close the window.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects