disable autocomplete

Discussion in 'HTML & Website Design' started by trichnosis, Oct 11, 2008.

  1. #1
    Hi;

    I want to disable autocomplete property of browser for one of the textbox on my web site.

    i know <input type="text" autocomplete="off" /> will disable it but that way breaks the xhtml.

    is there anyway which does not breaks the xhml?

    i'm not sure it's possible with javascript or not:(

    thanks for the comments
     
    trichnosis, Oct 11, 2008 IP
  2. devguys.com

    devguys.com Peon

    Messages:
    13
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I use this way. Works for me everytime. I was going to post the URL for this but I do not have enough posts yet.

     
    devguys.com, Oct 11, 2008 IP
    trichnosis likes this.
  3. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #3
    @devguys.com:

    does it works with firefox?

    i have applied that code but it works with internet explorer but it does not works with firefox 3

    edit:

    firefox : does not works
    internet explorer 7: works
    opera: works
     
    trichnosis, Oct 11, 2008 IP