Crack the eggs into a bowl and whisk them.
Thinly slice the onion and green onion.
Heat cooking oil in a pan and sauté the onion and green onion.
Pour the beaten eggs into the pan and stir as they cook.
Season with salt and pepper to taste.
Transfer to a dish to finish.