Let's say I have one page that displays the number "5". The page source code looks like this:
5
Now, on a different web page, I want to save the contents of this page (5) to a Javascript variable. I'm pretty sure this can be done by using jQuery/AJAX to access the external page, and then grab the contents, but I'm unsure as to how I would write the value into a Javascript variable.
How would you approach this? What code should be used?