I often use both my phone & computer. I recieve the code on one and then put the code in the other.
However if I'm using just my computer for both I have multiple windows open. I have email in one window and then click onto another window where the site that I need is to put the code in.
Sometimes you can also copy the code and then paste it into the place where it needs to go even if you feel that you lost the page.