onions should be pan sauteed with a little olive oil until soft and caramelized before putting on top of a pizza. raw onions contain a lot of moisture and will not cook evenly if baked on top of a raw pizza dough. one exception is red onion which can be sliced very thin and placed raw on the pizza to cook in the oven.