JSHelperDirtyConfirm Method |
Name | Description | |
---|---|---|
DirtyConfirm(String) |
Generate javascript for use in an onclick handler to determine whether the current page is dirty and,
if so, to confirm that the user wants to abandon their changes. Normally this script is prepended to
any other javascript that may be performed. If the only action involved is a navigation via an anchor
tag then typically this script is sufficient by itself.
| |
DirtyConfirm(String, String) |
Generate javascript for use in an onclick handler to determine whether the current page is dirty and,
if so, to confirm that the user wants to abandon their changes. Normally this script is prepended to
any other javascript that may be performed. If the only action involved is a navigation via an anchor
tag then typically this script is sufficient by itself.
Typically you should use the DirtyConfirm(String) overload which uses window as
the window symbol unless you know you need to refer to the window differently.
|