Crack the eggs into a bowl and whisk them well.
Finely chop the onion and green onion.
Heat cooking oil in a pan and sauté the onion and green onion over medium heat.
Pour the beaten eggs into the pan and quickly stir with chopsticks while frying.
Season with salt and pepper to taste.
Transfer to a plate to serve.