Seeking to defeat auto-fill

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Charles Richmond

    Seeking to defeat auto-fill

    Is there some parameter I can set via Javascript that will
    cause the browser to *not* auto-fill forms, regardless of
    the browser settings???

    --
    +----------------------------------------------------------------+
    | Charles and Francis Richmond richmond at plano dot net |
    +----------------------------------------------------------------+
  • Jorge

    #2
    Re: Seeking to defeat auto-fill

    On Nov 4, 7:15 am, Charles Richmond <friz...@tx.rr. comwrote:
    Is there some parameter I can set via Javascript that will
    cause the browser to *not* auto-fill forms, regardless of
    the browser settings???
    Buid the form dynamically, and use weird field names with a random
    part, such as name_675sd4Y. Then strip the random part at the server
    side. ISTM this may work.

    javascript:aler t("_"+(Math.flo or(1e8*Math.ran dom())).toStrin g(36))

    --
    Joprge.

    Comment

    • dhtml

      #3
      Re: Seeking to defeat auto-fill

      Charles Richmond wrote:
      Is there some parameter I can set via Javascript that will
      cause the browser to *not* auto-fill forms, regardless of
      the browser settings???
      >
      You can disable autocomplete on a form with:

      <form autocomplete='o ff' ...>

      or an element:-

      <input autocomplete='o ff' >

      See
      Elements in HTML have attributes; these are additional values that configure the elements or adjust their behavior in various ways to meet the criteria the users want.


      Google: "How to Turn Off Form Autocompletion"
      Yeilds:-
      The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.



      --
      comp.lang.javas cript FAQ <URL: http://jibbering.com/faq/ >

      Comment

      • Jorge

        #4
        Re: Seeking to defeat auto-fill

        On Nov 4, 8:44 am, Jorge <jo...@jorgecha morro.comwrote:
        On Nov 4, 7:15 am, Charles Richmond <friz...@tx.rr. comwrote:
        >
        Is there some parameter I can set via Javascript that will
        cause the browser to *not* auto-fill forms, regardless of
        the browser settings???
        >
        Buid the form dynamically, and use weird field names with a random
        part, such as name_675sd4Y. Then strip the random part at the server
        side. ISTM this may work.
        >
        javascript:aler t("_"+(Math.flo or(1e8*Math.ran dom())).toStrin g(36))
        >
        Forget it. This ^^^ doesn't do it:

        <https://developer.mozilla.org/En/
        How_to_Turn_Off _Form_Autocompl etion: "Note that variants of key
        words such as "Name1", "Address2" will also trigger the prompt."

        What dhtml has told you is the right thing.

        --
        Jorge.

        Comment

        • Matthias Watermann

          #5
          Re: Seeking to defeat auto-fill

          On Tue, 04 Nov 2008 00:15:11 -0600, Charles Richmond wrote:
          Is there some parameter I can set via Javascript that will cause the
          browser to *not* auto-fill forms, regardless of the browser settings???
          Why would you hinder the users of such a form?


          --
          Matthias
          /"\
          \ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
          X - AGAINST M$ ATTACHMENTS
          / \

          Comment

          • Matthias Watermann

            #6
            Re: Seeking to defeat auto-fill

            On Tue, 04 Nov 2008 00:03:29 -0800, dhtml wrote:
            Charles Richmond wrote:
            >Is there some parameter I can set via Javascript that will cause the
            >browser to *not* auto-fill forms, regardless of the browser settings???
            >>
            >>
            You can disable autocomplete on a form with:
            >
            <form autocomplete='o ff' ...>
            Which DTD allows such a tag attribute?


            --
            Matthias
            /"\
            \ / ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
            X - AGAINST M$ ATTACHMENTS
            / \

            Comment

            • Gregor Kofler

              #7
              Re: Seeking to defeat auto-fill

              Matthias Watermann meinte:
              On Tue, 04 Nov 2008 00:15:11 -0600, Charles Richmond wrote:
              >
              >Is there some parameter I can set via Javascript that will cause the
              >browser to *not* auto-fill forms, regardless of the browser settings???
              >
              Why would you hinder the users of such a form?
              >
              >
              It interferes with the popular XHR driven suggest widgets.

              Gregor

              Comment

              • Thomas 'PointedEars' Lahn

                #8
                Re: Seeking to defeat auto-fill

                Matthias Watermann wrote:
                On Tue, 04 Nov 2008 00:03:29 -0800, dhtml wrote:
                >Charles Richmond wrote:
                >>Is there some parameter I can set via Javascript that will cause the
                >>browser to *not* auto-fill forms, regardless of the browser settings???
                >>
                >You can disable autocomplete on a form with:
                >>
                ><form autocomplete='o ff' ...>
                >
                Which DTD allows such a tag attribute?
                No standardized one, so that's bad advice indeed. However, it might be
                possible to set a corresponding property of the corresponding element
                object in a suitable place instead.


                PointedEars
                --
                Use any version of Microsoft Frontpage to create your site.
                (This won't prevent people from viewing your source, but no one
                will want to steal it.)
                -- from <http://www.vortex-webdesign.com/help/hidesource.htm>

                Comment

                • dhtml

                  #9
                  Re: Seeking to defeat auto-fill

                  Thomas 'PointedEars' Lahn wrote:
                  Matthias Watermann wrote:
                  >On Tue, 04 Nov 2008 00:03:29 -0800, dhtml wrote:
                  >>Charles Richmond wrote:
                  >>>Is there some parameter I can set via Javascript that will cause the
                  >>>browser to *not* auto-fill forms, regardless of the browser settings???
                  >>You can disable autocomplete on a form with:
                  >>>
                  >><form autocomplete='o ff' ...>
                  >Which DTD allows such a tag attribute?
                  >
                  No standardized one, so that's bad advice indeed.
                  It gets the job done. Browsers that don't handle autocomplete will
                  ignore it.

                  However, it might be
                  possible to set a corresponding property of the corresponding element
                  object in a suitable place instead.
                  >
                  >
                  The ajax form's autocomplete property set to "off"

                  form.autocomple te = "off".

                  --
                  comp.lang.javas cript FAQ <URL: http://jibbering.com/faq/ >

                  Comment

                  • Charles Richmond

                    #10
                    Re: Seeking to defeat auto-fill

                    Matthias Watermann wrote:
                    On Tue, 04 Nov 2008 00:15:11 -0600, Charles Richmond wrote:
                    >
                    >Is there some parameter I can set via Javascript that will cause the
                    >browser to *not* auto-fill forms, regardless of the browser settings???
                    >
                    Why would you hinder the users of such a form?
                    >
                    The fields I want to disable auto-complete... only accept
                    numbers from 1 to 31. Auto-complete becomes more of a distraction
                    than a help here.


                    --
                    +----------------------------------------------------------------+
                    | Charles and Francis Richmond richmond at plano dot net |
                    +----------------------------------------------------------------+

                    Comment

                    • Thomas 'PointedEars' Lahn

                      #11
                      Re: Seeking to defeat auto-fill

                      dhtml wrote:
                      Thomas 'PointedEars' Lahn wrote:
                      >Matthias Watermann wrote:
                      >>On Tue, 04 Nov 2008 00:03:29 -0800, dhtml wrote:
                      >>>Charles Richmond wrote:
                      >>>>Is there some parameter I can set via Javascript that will cause the
                      >>>>browser to *not* auto-fill forms, regardless of the browser settings???
                      >>>You can disable autocomplete on a form with:
                      >>>>
                      >>><form autocomplete='o ff' ...>
                      >>Which DTD allows such a tag attribute?
                      >No standardized one, so that's bad advice indeed.
                      >
                      It gets the job done. Browsers that don't handle autocomplete will
                      ignore it.
                      That's inexperience talking; you just can't know that.
                      However, it might be
                      >possible to set a corresponding property of the corresponding element
                      >object in a suitable place instead.
                      >
                      The ajax form's autocomplete property set to "off"
                      >
                      form.autocomple te = "off".
                      Yes, that's what I meant.


                      PointedEars
                      --
                      Use any version of Microsoft Frontpage to create your site.
                      (This won't prevent people from viewing your source, but no one
                      will want to steal it.)
                      -- from <http://www.vortex-webdesign.com/help/hidesource.htm>

                      Comment

                      Working...