Although the heat source primarily cooks food from the top when broiling, heat still travels throughout the oven, creating an environment where all sides of a dish can cook when exposed to air. If you have an electric oven, open the door slightly to keep the air flowing and ensure that your electric oven doesn't overheat, which could cause the broiler to turn off automatically.