Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have a problem with some of Google's web apps, where they don't let me middle-click a link to a separate document. I use the heck out of tabs and I can't stand when they mess with that ability.

I CAN middle-click the following Google link types:

- Search Result

- Plus User Name/Icon

- Plus Link in Post

- Some links in Google Help.

I CANNOT middle-click the following:

- Map Search Result

- Plus "Fun & Interesting" results

- GMail Message

- Some links in Google Help.




Same functionality as right-clicking and choosing New Tab. This limitation occurs when there is either no href value for a link or some other element being used as a clickable element, in both cases the action can only occur with a javascript onclick event. This is something that in most cases could be taken into account by always starting with an anchor tag and then adding styles and javascript events.


>This is something that in most cases could be taken into account by always starting with an anchor tag and then adding styles and javascript events. //

Would that really take it into account? Surely you'd be loading a new link without the state that the client has created, you'd need to push the state to the server and construct the links based on that - at which point it seems you're duplicating effort at the server and client.


Exactly, and I think this is a poor pattern cropping up in a lot of JavaScript heavy sites.

Take, for example, Twitter--

You CAN right-click on links like:

- "Tweets"

- "Following"

- etc.

But you arbitrarily cannot right-click:

- A link to the user's "Recent images"

- The link to a user's profile from "Recent images"

- etc.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: