Onexitobject happens after the navigation is complete, so it's too late to stop navigation out of the form. Because of that, I don't consider them replacements.