IMO, it's more appropriate on a server-side before...
# suitescript
m
IMO, it's more appropriate on a server-side beforeLoad to provide a warning or confirmation based on the submit action that was just performed, but it is not available in server side scripts, and client scrips cannot call pageInit in view mode.