Thinly slice the onion.
Crack the eggs into a bowl and beat them.
Heat cooking oil in a pan and sauté the onion.
When the onion becomes translucent, season with salt and pepper.
Pour the beaten eggs into the pan and gently scramble until cooked.
Place the sautéed onion and scrambled eggs over rice.
If desired, serve with soy sauce or chopped green onions.