Add Button within list page next to "+" (add) button

HI
When within the list page would like to add a button next to the + (add) button to reset a $_SESSION variableWhat is the best way to achieve this.thanks

  1. To add a button you may use jQuery, see DOM Insertion, Outside.
  2. To do something on the server side you may add a custom API, see REST API → Create Your Own API Action in the help file or Using Route_Action server event.

manage to add the button usingvar $input = $(‘’);
$input.insertAfter(“.ew-add”);is there a way so it is it present when the pages loads and not appear after?
ie render with the pagethanks