Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6834371
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:06:13+00:00 2026-05-26T23:06:13+00:00

This question is in fact more about html+Javascript but Twitter is cited because I

  • 0

This question is in fact more about html+Javascript but Twitter is cited because I see a working example on it.

In Twitter, the link to a user profile is displayed like @Yourname. If you click on it
, an AJAX request will be made for the user profile and then the current page will be filled with that user profile without reloading. But when you right-click on it and select ‘open in new tab’ it will work just like a simple link that opens a new tab and a full page load will be done in that tab.

I think it has something to do with Javascript but not sure how to do it. Please help enlighten me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:06:13+00:00Added an answer on May 26, 2026 at 11:06 pm

    The link has an event handler on it that cancels the default action when clicking (load the href attribute on the page), and loads the profile on the right.

    When you right click in your browser on the link to open in a new tab, it doesn’t cancel the default action, and goes to twitter.com/#!/profilename.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Jeff actually posted about this in Sanitize HTML . But his example is in
This question is a follow up to my previous question about getting the HTML
This question is about removing sequences from an array, not duplicates in the strict
I had asked this question in a much more long-winded way a few days
I have asked this question on twitter as well the #clojure IRC channel, yet
- Since discovering more about my problem I have modified my question A single
Hopefully, this question isn't a dumb as I fear it sounds, but it may
This question is motivated by something I've lately started to see a bit too
I know this question has been asked a bit before. But looking around I
This maybe a bit of a 'wide' question, but am putting together a brief

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.