I'm trying to extract some basic information from a website, but I'm having trouble figuring out how to set the document "source" as the website I'm referencing. For example, if I have something like:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
<script>
var user = document.getElementById("the-user").innerHTML
</script>
How can I make it so that the script knows which document to take the ID from (in this case a website that I own)?