-1

When we are entering the username in a textbox in a browser, the recently used usernames are shown in a drop down list automaticaly. I want to avoid this for the secure web page.

How can this be done?

  • possible duplicate : http://stackoverflow.com/questions/22666480/jsp-autocomplete-off-not-working-in-chrome-or-firefox – Tharif Mar 31 '15 at 04:45

2 Answers2

1

are you heard a term called autoComplete..

<input name="q" type="text" autocomplete="off"/>

REFERENCE

Sarath
  • 2,318
  • 1
  • 12
  • 24
  • 1
    @utiltty ohh god.. how intelligent you are :) .. thanks for your advice – Sarath Mar 31 '15 at 04:42
  • Thank you @Sarath.please go through : http://stackoverflow.com/questions/22666480/jsp-autocomplete-off-not-working-in-chrome-or-firefox – Tharif Mar 31 '15 at 04:45
0

Use autocomplete="off" attribute in the <input /> tag. If this does not work in certain browsers, you can use a cross-browser-compatibility workaround :

<input type="text" style="display: none;" autocomplete="off"/>
<input type="text" autocomplete="off"/>

This tricks the browser into auto-filling the hidden element.

war10ck
  • 16
  • 1