From duplicate: also think about the case where the user selects some text, navigates to a different page and tries to paste it.
From duplicate: also think about the case where the user selects some text, navigates to a different page and tries to paste it.