• @[email protected]
    link
    fedilink
    English
    128 months ago

    I have seen certain links on the internet, where,

    The text reads “example.com”, and when you hover over it, the little textbox at the bottom left also reads “example.com

    but if you click to open the link in a new tab or if you right click and copy the link and paste it in the address bar, it’s actually a completely different link

    it’s shady af! and im wondering if it’s the same thing as what this article is describing, and if not, how they are able to do it?

    • @[email protected]
      link
      fedilink
      English
      148 months ago

      Basically override the default event for an anchor tag and use js to open a new tab to a given link.

    • plz1
      link
      English
      78 months ago

      My guess would be JavaScript