- This topic has 1 reply, 2 voices, and was last updated 6 years ago by .
Viewing 1 reply thread
Viewing 1 reply thread
- You must be logged in to reply to this topic.
Home › Forums › Development › show warning message when closing the browser window
Tagged: Show Warning Message Popup
Hello,
I would like to show a warning message when we click the close button of browser window.
For Example:
when we use the statement (this’browse “http://www.nexj.com” “nexj”), it will navigate to new browser window. I would like to show a warning message popup window like “Do you want to close” with yes and no buttons when try to click on close(cross mark)Â button.
Please provide a solution,
or provide alternative ways to navigate to the other website to achieve this if solution not available
Thanks
Srinivas
The “this’browse” command opens up a URL outside of NexJ Studio control: in the systems default web browser. Since it is outside of NexJ, there is no way to hook into showing that warning message and ultimately that browser is controlled by the URL specified.
To maintain control of the behaviour, the URL would need to be opened within a NexJ controlled elemeent: so either
i) embedding the URL in a portlet (which users would not be able to “close”), or
ii) launching a NexJ UI Popup that has a “Browser” control on the form.
It would be good to know the context or the reason behind the warning message: as it appears that the behaiour is to have the app control the behaviour of another URL or the browser itself.
Please Register or Sign In to view more content.