getElementById in external site

Is it possible in javascript to fetch an element from a different site?
In example:

External site:

....
<div id="foo">....</div>
....

My site:

Well… I don’t know, can some of you tell me how I get the content of the div “foo” in a variable?