What you're describing already exists in the browser's history, AND is a keylogger which could be used for dishonest purposes for which you won't find help here.