<input type="hidden" value="€,´,€,´,水,Д,开发者_如何转开发Є" name="charset_test">
<input type="hidden" autocomplete="off" value="Zo_ap" name="lsd" id="lsd">
i saw this in facebook login page.what the use of this?? and also i need to know wats the use of autocomplete ="off" in hidden input box..
charset_test prints out UNICODE characters to the DOM of the browser, and then javascript checks to see if the browser can render it correctly. This is for localization, to provide localized resource strings to users in other regions.
Autocomplete is for search, if you don't konw what Autocomplete is, I would google it :)
The hidden INPUT tag allows HTML form developers to store information for delivery with the form data that is invisible to the form users. The hidden form fields are used to save state in multi-page forms, collect cookie data to deliver to the form, and just store data beyond what the customer fills in.
Autocomplete is for search, if you don't konw what Autocomplete is, I would google it :)
Kudos on the explanation of the charset_test, but I don't really agree with the autocomplete statement. Although an autocompleted input element through javascript is a rather common phenomenon, this is not for a Javascript, this is for Internet Explorer. Internet Explorer "remembers" what you have typed (so do the others, btw), and tagging an input with 'autocomplete="off"' means that you're telling internet explorer not to display a list with recently typed information when the user clicks in it. This behaviour is documented by Microsoft.
精彩评论