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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T17:48:05+00:00 2026-05-20T17:48:05+00:00

I have two page page1.php and page2.php, on page1.php i click on a href

  • 0

I have two page page1.php and page2.php, on page1.php i click on a href and that link to page2.php somewhere…

in the page2.php there is 4 expander, hidden or close on pageload…

question : i like to pass from page 1 to page2 which of the expander i like to see OPEN

something like page1 href=”page2.php?open=1″

and on page2.php a jquery that retreive the open var, and after pageload expand only that one…

i have research google and come with that : https://github.com/allmarkedup/jQuery-URL-Parser

is it possible to do that without plugsin ?

  • 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-20T17:48:05+00:00Added an answer on May 20, 2026 at 5:48 pm

    The specific answer:

    var expanderNo = (location.search.match(/open=(\d+)/) || [])[1]
    

    But if your intention here is to link to a specific part of the page, then URL fragment is more appropriate. Given the URL /page2.php#expander1 you can retrieve the expander1 part with location.hash.substr(1).

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

Sidebar

Related Questions

I now have two asp.net pages. When I click on a link on page
We have a page that ordinarily has two elements arranged side-by-side. Despite exploring a
I have an ASP.Net 2.0 page that contains two UpdatePanels. The first panel contains
I have thumbnails on a page, as such: <div id=credits> <a href=largeimage1.jpg alt=credits1.php><img src=thumb1></a>
I have the following pages: page1.php <?php if (isset($_GET['link'])) { session_start(); $_session['myvariable'] = 'Hello
I'm new to javascript, my problem is effectively: I have a php page that
lets say i have two pages links.html & contents.php ... first page contains only
Let's say that I have two links. <li><a href=# id=VALUE1 class=charName>Name 1</a></li> <li><a href=#
I have two forms on a page (one is being grabbed by AJAX). I
I have two websites, let's say they're example.com and anotherexample.net . On anotherexample.net/page.html ,

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.