I do list products using custom HTML, i am using ServerOnClick and OnClickParameter.

When I click on my product card it fires the event OnClick and redirects to another page.

But in some cases i want to add an anchor <a> tag, and when the user klicks on that link i want to execute a procedure in the webapp to add the item directly to the shopping basket without having to navigate to the next page and then click purchase on the details.

I need to publish the procedure but how can i execute it and what should i put in the <a> tag to make it work?

I how you understand what i am after