<@U833MRXLP> No you need two script, one UserEvent...
# suitescript
a
@walbin No you need two script, one UserEvent script that would do the beforeLoad thing and another script: ClientScript that would do the other things...