Prevent user from navigating to another webpage by displaying a dialog box [message #485494] |
Wed, 08 December 2010 10:06 |
quigs
Messages: 10 Registered: October 2007
|
Junior Member |
|
|
Hi,
I was wondering if anyone could tell me how to know when a user was navigating away from the current open
form (and I wanted to prevent the navigation with a dialog box) because they had entered a new URL in the address bar and were trying to navigate to it?
I've seen a reference to it from an ADF perspective -> http://www.oracle.com/technetwork/developer-tools/adf/unsaveddatawarning-100139.html
but was wondering how to do it within Forms?
The reason for this is that i would want to prompt the user to confirm that they wanted to exit the form as potentially they would have a record (in the form) flagged as being updated and as such no other user (including themselves) could susbequently access it.
So, I'm basically wanting to know if there is a way to catch the fact that the user is about to navigate to another web page.
Is it by using javascript and if so, how would it be implemented?
Many thanks in advance for your assistance.
Kind regards,
Tom
|
|
|
|