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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T08:23:01+00:00 2026-06-09T08:23:01+00:00

I have two pages, a.html and b.html . In b.html there are two buttons

  • 0

I have two pages, a.html and b.html.

In b.html there are two buttons b1 and b2 which on clicking run javascript function pop() with parameters passed as b1 and b2 respectively. Now running pop changes the contents of my b.html depending on the button clicked.

Now I have two hyperlinks a1 and a2 in a.html.
What I want to achieve here is, if I click a1 I want b.html to be loaded and the contents to be displayed as it would have been after clicking b1.

So basically when I click a1 in a.html, I want b.html to be loaded and then pop() to be executed with b1 as parameter and the resulting page displayed. Can it be done?

  • 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-06-09T08:23:03+00:00Added an answer on June 9, 2026 at 8:23 am

    You could do it through URL parameters, such as a.html?value=test.

    On a.html, clicking the button takes you to b.html?dopop=true.

    You can then implement some Javascript on the page load ($(document).load(function() {});, & there’s plenty of jQuery plugins to handle the parameters) to check if dopop is specified or true. If it is, execute that function.

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

Sidebar

Related Questions

Lets say there are two pages with two different html elements which have the
I have two HTML pages: source.html and dest.html In source.html, I create some buttons
In my html page, I have one table, for every row there are two
lets say i have two pages links.html & contents.php ... first page contains only
I have two html pages on my webserver www.example.com/desktop.html www.example.com/mobile.html In principle the content
I have the exact same html sitting on two different servers. Both pages call
In the following HTML page, I have a div, which contains two spans (
I currently have a html login page which has two textfields for e-mail address
I have two html pages, when you click on something on the first html,
I have made a web user control (.ascx) which consists of the two 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.