canceling trigger running

hi!

i need to cancel trigger "before add" processing using javascript and no add record to database
do somebody know how to do it?

thanks in advance