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?

Comment via: substack

Recent posts on blogs I like:

Tuberculosis Considered As Dating Strategy

Against some evopsych

via Thing of Things July 8, 2025

Retrospective on life tracking and effectiveness systems

I’ve been doing life tracking for around 10 years, and this post is looking back at some things I learned from the data (since my previous retrospective in 2017). Highlights include what I get out of the Oura ring, correlations between sleep and deep work…

via Victoria Krakovna July 4, 2025

Elixir's Last Dance

On May 18th, the contra dance band Elixir had their last gig ever. The dance was packed: there were three hundred people. It was the only dance BIDA has ever done where they sold tickets. People flew from across the country just to hear Elixir play one la…

via Lily Wise's Blog Posts June 5, 2025

more     (via openring)