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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T14:49:16+00:00 2026-06-16T14:49:16+00:00

I have some data stored in a JavaScript array which I want to send

  • 0

I have some data stored in a JavaScript array which I want to send to some other page. Is it possible to do this without utilizing any server-side scripting like PHP? Can it be done with JS or jQuery or something like that? Ideally, I want to be able to access that array in my JS script on the other page.

Thank you

  • 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-16T14:49:17+00:00Added an answer on June 16, 2026 at 2:49 pm

    You can serialize your Array/Objects into a String using

    JSON.stringify

    so if you have an Array like

    var arr = [1,2,3,4]
    JSON.stringify(arr) // "[1,2,3,4]"
    

    And then pass it using an GET parameter to your other page

    In which you could acces it using something like this

    function get(q,s) { 
            s |= window.location.search; 
            var re = new RegExp('&'+q+'(?:=([^&]*))?(?=&|$)','i'); 
            return (s=s.replace(/^\?/,'&').match(re)) ? (typeof s[1] == 'undefined' ? '' :     decodeURIComponent(s[1])) : undefined; 
        }
    

    If you’r url were www.example.com/?arr="[1,2,3]"

    get("arr")

    Would return

    "[1,2,3]"

    of course you could also store this String in a Cookie or in the localStorage
    Object (which is only supported by modern browsers)

    Then you can use

    JSON.parse

    var arr = JSON.parse("[1,2,3,4]");
    arr // [1, 2, 3, 4]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data which I originally stored in a generic Javascript object, with
I have some prices in my DB which are stored as data type money
I have a stored procedure that logs some data, how can I call this
I have a stored proc which unions some data and returns back. At max
I have a generated nested Array which I store some data. How can i
I am new to javascript and have some data stored in a txt file
I have some data that is stored in a TIMESTAMP(6) WITH TIMEZONE column in
I've copied some text nodes from the page (i.e., live DOM) and have stored
I have some stored proc.s that get data from DB. I made some data
I have an iframe to preview some data. The data is stored in a

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.