Crack the eggs into a bowl and whisk well with salt and pepper.
Finely chop the onion and green onion.
Heat some cooking oil in a pan and sauté the chopped onion and green onion.
Pour in the egg mixture and stir gently with chopsticks as it cooks.
Once the eggs are soft and cooked, turn off the heat and transfer to a plate.