Try slicing the onion near an open window so the fumes don't irritate your eyes, or turn on the fan in your kitchen and cut the onion nearby. If you have time, you can also freeze the onion for a few minutes.