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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T22:18:23+00:00 2026-06-15T22:18:23+00:00

I want to grab some data from a page opened in one tab, and

  • 0

I want to grab some data from a page opened in one tab, and paste it into a textarea of another page opened in another browser tab. How can I do this with Javascript and Greasemonkey?

  • 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-15T22:18:25+00:00Added an answer on June 15, 2026 at 10:18 pm
    1. Set both domains in the metadata block so the script will be activated on both pages
    2. Find an unique element in both websites from which you can detect which page you are currently on.
    3. If you are on the page with the table, get the data and put it with GM_setValue in the store. If needed, open the next website by using GM_openInTab.
    4. If the next website gets detected, retrieve the stored value with GM_getValue and paste it into the textarea.

    Not this hard over Greasemonkey, even though its necessary to load the textarea-page AFTER the table-page.

    Example

    // @include       http://website1.com/*
    // @include       http://website2.com/*
    // @require       http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
    
    $(document).ready(function() {
        if( $("#divfromsite1").length )
        {
           GM_setValue("pastetext", $("#gettable").html() );
           GM_openInTab("http://website2.com/");
        }
        else
        {
           $("#pastetextarea").val( GM_getValue("pastetext","") );
        }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to copy some data from one table to another but I need
I want to grab some data from remote database and I have some networking
I want to be able to occasionally programmatically grab some data from the graph
I want to scrape data from some text and dump it into an array.
I need to grab some data from websites in my django website. Now i
I want to grab some elements of a page using jQuery and ajax...no problem.
I want to grab my customers phone number from a MYSQL database and auto
I want to grab the most recent entry from a table. If I was
I want to grab from a db a record with name='John Doe'. I'd like
I want to grab records from a table based on the day of the

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.