Heat the butter in the pan and melt it. Add the onions and after 2 minutes sprinkle with the sugar and caramelize a little. Deglaze with the balsamic vinegar and let it boil down.
Season to taste with salt and pepper.
Tastes very good with liver, but also cold as a salad with bread.