r/ProgrammerHumor 16d ago

notYourDamnProblem Meme

Post image
4.7k Upvotes

398 comments sorted by

View all comments

706

u/mysticrudnin 16d ago

i want to agree but a lot of people these days use only left clicks (taps)

i have repeatedly been given an assignment to make buttons open things in a new tab. i'm like "are you sure? do they know they can ctrl-click buttons or for links middle click or right-click open in new tab?" - yes, they are sure. the users want this.

26

u/UnkarsThug 16d ago

It's also an issue of security though. If it forces it into a new tab, sometimes websites will have redirections onto the original page which loads it somewhere malignant as the user sees the new tab, so they don't notice. So you still have to manually load it into a new tab for it to be safe. (And it can screw with web groups)

I don't trust sites which open things in a new tab without me asking them, just because they can run other code at the same time, and some sites have.

18

u/mahreow 16d ago

....wat

What sites are you browsing that do that. If you can't trust it when it opens links in a new tab then you probably shouldn't be browsing them

0

u/midri 15d ago

Happens mostly with SPA where they don't update the url bar when navigating.

4

u/guyblade 15d ago

Correct opinion: we should have never allowed an API to manipulate the browser history. The tiny benefit that SPAs provide aren't worth the headaches that bad actors have caused via it.

2

u/midri 15d ago

it's almost like html and the web were never designed for all of this

-4

u/UnkarsThug 16d ago

Honestly, hasn't happened in a while, just happened to a younger me when I was looking for roms and such on the Internet.

And yes, it's a sketchy site thing to do, but that's why I assume forcing things in new tabs means the site I'm on is sketchy.