Javascript and Open in a New Tab

March 12th, 2011
tech
Many sites have things that look like links but are actually javascript. When you middle click them to tell them to open in a new tab, the browser can't do what you want. The simple solution is for web programmers to use simple RESTful design and avoid javascript when a standard link would do. But that requires fixing things in a lot of different places. So what about a centralized solution, a browser change, perhaps as an extension, that interpreted an "open in a new tab" action as:
  1. Create a full duplicate of this page in a new tab
  2. Run the javascript there
Would this break anything? Are there sites that use unique ids or something in their javascript and use these when talking to their host?

Recent posts on blogs I like:

Facts I Learned From A City On Mars

Space bastardry!

via Thing of Things April 14, 2025

Which Came First, the Chicken or the Egg?

When I thought about this question it was really hard to figure out because the way it's phrased it's essentially either a chicken just pops into existence, or an egg just pops into existence, without any parent animals involved. I thought about t…

via Lily Wise's Blog Posts April 13, 2025

Advice for time management as a manager

have accurate expectations of yourself • prioritize ruthlessly • unemploy your future self • a five-step “help, I’m overwhelmed” checklist • carve out focused time

via benkuhn.net April 1, 2025

more     (via openring)