• Lupec@lemm.ee
    link
    fedilink
    arrow-up
    39
    ·
    edit-2
    10 months ago

    As a web developer of questionable frontend skills, it kinda looks like something you’d do as a band-aid solution if you had no idea how forms work or how to suppress their default events, which do happen to include the enter key being pressed. Really wild to go about it that route, whatever the intention was lol.

    Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it’s even weirder they chose to handle it like this

    • 𝒍𝒆𝒎𝒂𝒏𝒏@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      10
      ·
      10 months ago

      Edit: While typing my other response down this comment thread, I realized for this to happen the developer must have actually suppressed the event correctly so it’s even weirder they chose to handle it like this

      Probably users were submitting the form too early or something, either way I agree this is a bit of an unusual way to handle this lol

      • Lupec@lemm.ee
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        So a form is basically a group of fields, think name, email and whatnot. By default, whenever you press enter in one of those, the browser takes whatever content is in the fields and follows some steps but the end result is it reloads the entire page. Nowadays that’s not what you want 99% of the time but it’s still the default behavior, so you have to instruct the browser not to do so by adding a couple lines of code. Whoever programmed this particular website then thought to inform the user that wasn’t going to work on top of presumably suppressing the original behavior.

        • imposedsensation@lemmynsfw.com
          link
          fedilink
          English
          arrow-up
          4
          arrow-down
          1
          ·
          10 months ago

          Almost need to spend as much time learning the norms of modern web development as you do learning the syntax and behavior of Javascript.

  • Nougat@kbin.social
    link
    fedilink
    arrow-up
    18
    ·
    10 months ago

    I wouldn’t file taxes a site that doesn’t enforce HTTPS at its default root page.

    • Fuck spez@sh.itjust.worksOP
      link
      fedilink
      English
      arrow-up
      16
      ·
      10 months ago

      Sadly this is one of only two sites where I can E-File my state taxes for free according to the IRS and the other one didn’t look much better. Thanks TurboTax/H&R lobbyists.

    • Moonrise2473
      link
      fedilink
      arrow-up
      5
      ·
      10 months ago

      LOL, i could understand decades ago when the SSL certificate was expensive and a hassle to renew but nowadays it’s (almost) just a checkbox…