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

  • SEARCH
  • Home
  • 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 6899027
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:22:11+00:00 2026-05-27T07:22:11+00:00

So I need to open tabs from my website to other websites using JavaScript

  • 0

So I need to open tabs from my website to other websites using JavaScript and jQuery (I cannot use an <a> tag as a requirement). The links come from the database, so I set the title of the object the user clicks to the link and then redirect them when they click it, and I have code that does this alright:

<script language="javascript" type="text/javascript">
    var RedirectCount = 0;

    $(document).ready(function () {

        $(".ResultRow").click(function () {
            if ($(this).attr("title") != "") 
            {
                window.open($(this).attr("title"), "Program" + RedirectCount, "");
                RedirectCount = RedirectCount + 1;
            }
        });
    });
</script>

So this works great, except that many of the URL’s have # signs in them which is supposed to open up a specific tab on the destination page. This works on Firefox, but IE 8 removes the # tag before the second tab opens. I also tried recoding the URL using JavaScript’s built in URLEncode function, ASP.NET’s URLEncode function, and simply replacing # signs with %20, none perform the correct action.

I do not have access to other browsers, and I’ve been googling the problem for the last half hour without finding an answer, so what I’m looking for are the answers to these two questions:

  1. Is there any other way to open a new tab that will always work with a # besides window.open or an <a target="_blank"> tag?

  2. How many browsers don’t perform this action correctly (especially Google Chrome)? Has the issue been fixed in IE9+?

  • 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-27T07:22:12+00:00Added an answer on May 27, 2026 at 7:22 am

    The solution is that Visual Studio interferes with the way in which IE8 runs the JavaScript code, and that the code listed in the question will in fact work properly when running under normal conditions. I do not know why, nor do I feel that it is important enough to figure out why, perhaps in a few years someone may find this answer out and add it to the comments below.

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

Sidebar

Related Questions

I need to open a link from within jQuery but i need to avoid
I noticed that I can open multiple tabs from different buttons/links. :) What i
I need to open foxpro free tables in vb.net using the oledb connection. But...
I need to open a new window from code-behind on post-back if a specific
I have a form using jQuery that I need to manipulate the incoming data.
I need open source database that I can ship with my commercial application. It
Hey can any one tell me should i need open a port for outgoing
I'm creating Content management system in asp.net. But I need open source cascading stylesheet
I need to open a page inside another page without the horizontal scroll bar
I need to open multiple files (2 input and 2 output files), do complex

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.