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

  • Home
  • SEARCH
  • 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 8823171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T06:17:13+00:00 2026-06-14T06:17:13+00:00

This is a very specific question that relates to a broader question asked here:

  • 0

This is a very specific question that relates to a broader question asked here:

grab/copy/convert to variable: google translated text (write to other page) client side

I’ve read DOM (wiki):

To render a document such as an HTML page, most web browsers use an
internal model similar to the DOM. The nodes of every document are
organized in a tree structure, called the DOM tree, with topmost node
named “Document object”. When an HTML page is rendered in browsers,
the browser downloads the HTML into local memory and automatically
parses it to display the page on screen. The DOM is also the way
JavaScript transmits the state of the browser in HTML pages.

It’s interesting, but it doesn’t state what the output is ‘as an object’.

Yet we can highlight the output, or displayed text, and copy it, and paste it.
Therefore the highlight and copy commands must know how to access the output – ergo it must be an object (yes/no?).

If these commands can access the output…… it begs the question:

Can Javascript also access the output?
If so…. what is it called, and what is the script path to it.

E.g. typical example:

var x = document.getElementById("textarea_id").value;

I probably need:

var x = path_to_parsed_output.value;

The answer to this question must be out there…. but I’ve looked at a good few reference sites, and none seem to address this issue head on.

I’m hoping for some knowledgeable people to simply state, what is perhaps an obvious answer (obvious if you have the knowledge).

🙂

  • 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-14T06:17:14+00:00Added an answer on June 14, 2026 at 6:17 am

    Yes and no.
    Yes, you can access practically anything you want, in the DOM, through JavaScript.

    But there are no universal references to nodes further down the list than the root node (again, with a couple of exceptions).

    You either have to traverse the DOM, using a tree-navigating algorithm, until you find what you’re looking for, or you have to give your HTML node a defining characteristic and use a DOM accessing method which will either give you the single element with that attribute (id), or a list of nodes which have that attribute (class), which you have to iterate through to find what you want.

    …so the trick is to find the defining characteristics of the node you want, to make accessing it as painless as possible.

    DOM nodes aren’t 1:1 with objects, though.
    Meaning that changes you make to it as an object might not be reflected in the HTML, and vice versa (unless you’re using DOM-specific methods).

    In terms of what DOM objects support, read the tutorials on Mozilla Developer Network.
    That’s a HUGE topic, and different browsers support different things.

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

Sidebar

Related Questions

This is a very specific question for a Google Chrome extension. http://www.meebo.com/mobile/ This page
This is a very general question that's not related to a specific language. I'm
This question relates to a very specific and common scenario in which a dictionary
This is a very specific question which will probably earn me the tumbleweed badge,
This is a very narrow and specific question, but I know there are someone
I realize this is a very specific question so it would be helpful if
First of I'm very sorry but this questions is not so so specific. All
I'm very sorry about this being a very cliché question, but I really need
This seems to me like a very simple question, but I can't seem to
I realize that this question is slightly server related and could be posted on

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.