You can always press Ctrl-z or select "undo" from the Edit menu (depends on what browser you're using) but it has to be done immediately, not after you've done something else.