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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:16:01+00:00 2026-06-01T20:16:01+00:00

I have two HTML pages: source.html and dest.html In source.html, I create some buttons

  • 0

I have two HTML pages: source.html and dest.html

  • In source.html, I create some buttons (start, stop, pause …)
  • In dest.html, I create a simple clock.

Whenever I click on one of these buttons, the source will send a message to dest. After being processed, the result (based on which button was pressed) will be sent back to the source.
I tried iframe, but it did not work for me. Are there any suggestions that do not use the client-server model?

  • 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-01T20:16:01+00:00Added an answer on June 1, 2026 at 8:16 pm

    There are 2 ways to send the message.

    1. In source create a form which submits to dest.html, make sure the method is ‘GET’

    2. On click of the button set the value of the message and submit the form

      // something like
      document.getElementById(‘message’).value = ‘HELLO’;
      document.getElementById(‘form’).submit();

    2a. You dont need to make the form, you can just redirect with hardcoded url on the source.html button click like

    window.location = 'dest.html?message=somemessage';
    
    1. On submit the dest.html file will open, with the message available in the URL of the page

      var url = window.location+””;

      // if there are multiple parameters you will have to loop and store them in array for single you can use

      var message = url.substr((url.indexOf(‘=’)+1));
      alert(message);

    2nd Method
    Not tried, store them in cookies when button gets clicked on source.html and read the cookies in dest.html

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

Sidebar

Related Questions

I have two pages - a simple HTML code example page from a jQuery
lets say i have two pages links.html & contents.php ... first page contains only
Lets say there are two pages with two different html elements which have the
I have the exact same html sitting on two different servers. Both pages call
I have those two html radio buttons and textarea. I basically want to enable
I have to check the differences between two html pages: One is an old
Let suppose i have two html pages p1 & p2 and it uses different
I have two text boxes t1 and t2 in an html page. I'd like
Let's say we have two flash objects on the same html page. I want
I have an HTML page and I want to fetch the result between two

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.