Q:

how to get textbox contents from a webpage using its loaded source

How do i copy a dynamic text that is being generated in a textbox at a random webpage? i dont have any access to the code or the api's related to the webpage. 
<div id="results">
          <span class="final" id="final_span">hello</span> <span class="interim" id="interim_span"></span>
        </div>

using chrome dev tools i can see the text displayed is "hello" in the webpage. how do i make a programatical copy of the same? and use it in my application?
document.getElementById("interim_span").innerHTML

will get me if i have to the source of the webpage. how do i do the same from a standalone js ?
PS: am new to JS.

A:

I managed to get the data from the webpage by making it to send it via web socket.

