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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:18:24+00:00 2026-05-27T04:18:24+00:00

When i post data from one page to another,how do i get that into

  • 0

When i post data from one page to another,how do i get that into dom.

say URL is http://www.test.com/?xxx=1234&a=122

How to get xxx and a value inside DOM?

  • 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-27T04:18:24+00:00Added an answer on May 27, 2026 at 4:18 am

    The parameters in the URL are available as the search property of the window.location object. It’s not too hard to convert it to an object for easy access:

    function getURLValues() {
    
      var search = window.location.search.replace(/^\?/,'').replace(/\+/g,' ');
      var values = {};
    
      if (search.length) {
        var part, parts = search.split('&');
    
        for (var i=0, iLen=parts.length; i<iLen; i++ ) {
          part = parts[i].split('=');
          values[part[0]] = window.decodeURIComponent(part[1]);
        }
      }
      return values;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In HTML, you can send data from one page to another using a GET
I'm tying to send POST data from one site to another (both sites have
I am making a page that accepts post data from any number of pages
I post some data over to another page from a form. It's a shopping
I want to transfer a data from one webpage to another page. But I
I need to send form values from one page to another and from that
I am trying to get some form data from POST method. Here's the code
I have a AJAX post method that gets xml data from server. But when
I am using sessions to pass user information from one page to another. However,
I have a website with a URL like: http://mysite.com/this-is-a-page and then I use that

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.