Is it possible to access text input's history with javascript?
Firefox remembers what you have so far entered in a given text input and as soon as you start typing it suggests previous values matching what you have typed so far.
Is it possible to access thi开发者_如何学Pythons list via javascript?
Thanks.
Firefox remembers what you have so far entered in a given text input and as soon as you start typing it suggests previous values matching what you have typed so far.
This features is there with the browser itself.
Is it possible to access this list via javascript?
I am afraid, that's not possible
No that is not possible, that information is private to the user.
If it was possible, you could just put a textbox with the name "email" or "password" on a page, and start harvesting whatever people wrote in such textboxes on other sites.
Even if you limit the access to the same site, people doesn't always want to be associated with what they did earlier. If I for example accidentally made a search for something that happens to be urban slang for something else, I don't want "relevant ads" to follow me.
精彩评论