Slice the onion thinly and chop the green onion.
Beat the eggs in a bowl and season with salt.
Heat cooking oil in a pan and stir-fry the onion and green onion.
When the onion turns translucent, add the beaten eggs.
Cook by stirring like a scramble until set.
Transfer the finished stir-fry to a plate.