Stir frequently. Remove the browned onions to a bowl.
Turn the heat back up on the pan. Cut the kernels off the two ears of corn (a light sawing motion with a serrated knife seems to work well). Throw them in the hot pan just long enough to warm and give a touch of color: