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 4063048
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:40:34+00:00 2026-05-20T15:40:34+00:00

I want to open a new tab when thru the parameter in the query

  • 0

I want to open a new tab when thru the parameter in the query string.

For an example,I have four tabs (t1, t2,t2,t4). Right now, i have implemented the code that whenever user puts http://abc.net/disc_apps.jsp#tab3, it automatically opens tab3.For that i have written a function in document.ready, so for that I need to refresh the page or have to open a new tab and then have to enter a new query string.

But, now i am trying to implement http://abc.net/disc_apps.jsp?defaultTab=tab3 functionality, where i don’t have to open a new tab every time or don’t have to refresh the page.

please help me as I am new to these things.

thanks in advance.
Hemish

  • 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-20T15:40:35+00:00Added an answer on May 20, 2026 at 3:40 pm

    After deciphering the question and reading the comments up to three times, your concrete problem turns out to be the following:

    I want to change the hash fragment in the URL when I change a tab in the UI.

    Using query strings isn’t the solution. They are server side and not controllable from the client side on without firing a HTTP request (or, “refreshing the page” as you call it yourself). Hash fragments are however controllable from the client side on. It’s extraordinary easy as well: just use it as-is in tab links.

    <a href="#tab1">tab1</a>
    <a href="#tab2">tab2</a>
    <a href="#tab3">tab3</a>
    

    The webbrowser will change the hash fragment in the browser address bar by itself. I however assume that you already have a jQuery function which already shows the desired tab content when any of those links is clicked (and doesn’t return false from the function!).

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

Sidebar

Related Questions

I've opened a new window with window.open() and I want to use the reference
I want to open a TCP client socket in Python. Do I have to
I want to open a save file dialog, have the user enter a filename,
I want to open links in my post on a new page or a
I want to open a file for reading, the C++ way. I need to
I want to open a folder window, in the appropriate file manager, from within
I want to open and manipulate Excel files with ActiveX. I've had success with
I want to open a file dialog box in user control. I used using
Suppose I want to open a file in an existing Emacs session using su
If you want to open an msg Email file with the extension .msg, Outlook

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.