masking passwords

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

    #1

    masking passwords

    Hi,

    Is there anyway to mask the input into a javascript 'prompt' making it like
    a password type textbox?

    Thanks,
    Andy.

  • McKirahan

    #2
    Re: masking passwords

    "Andy" <Please reply to the group> wrote in message
    news:1cbd8cea94 7ba5c821ce67469 627e7a7@unlimit ed.ultrafeed.co m...[color=blue]
    > Hi,
    >
    > Is there anyway to mask the input into a javascript 'prompt' making it[/color]
    like[color=blue]
    > a password type textbox?
    >
    > Thanks,
    > Andy.
    >[/color]

    Have you considered using:

    <input type="password" >


    Comment

    • Andy

      #3
      Re: masking passwords

      "McKirahan" wrote in message[color=blue]
      > Have you considered using: <input type="password" >[/color]

      That would be my last resort. I was looking for a quick check against a
      stored cookie without any other trips to the server.

      Thanks for your time though.

      Comment

      • Carl Smotricz

        #4
        Re: masking passwords

        Wait... just because it's in a FORM doesn't mean you can't evaluate the
        contents in JavaScript. No need to roundtrip to the server when you can
        evaluate getElementById( "myInput").valu e .

        Happy hacking!

        -Carl-

        Andy wrote:
        [color=blue]
        > "McKirahan" wrote in message
        >[color=green]
        >>Have you considered using: <input type="password" >[/color]
        >
        >
        > That would be my last resort. I was looking for a quick check against a
        > stored cookie without any other trips to the server.
        >
        > Thanks for your time though.
        >[/color]

        Comment

        • Lee

          #5
          Re: masking passwords

          Carl Smotricz said:[color=blue]
          >
          >Wait... just because it's in a FORM doesn't mean you can't evaluate the
          >contents in JavaScript. No need to roundtrip to the server when you can
          >evaluate getElementById( "myInput").valu e .[/color]

          However, if the correct password is stored in the cookie, why
          bother to ask for it? An unscrupulous visitor could easily
          read the value of the document's cookie.

          Comment

          • Andy

            #6
            Re: masking passwords

            > However, if the correct password is stored in the cookie, why[color=blue]
            > bother to ask for it? An unscrupulous visitor could easily
            > read the value of the document's cookie.[/color]


            Shhhhhhhhhhhhhh hh.

            Comment

            Working...