When caramelizing onions you want to add salt to them at the beginning of the cooking process. Onions won't caramelize until the water has evaporated and salt will speed up that process.