I'm a JS novice so be gentle.
I am working on a simple script that reads a value from another web page on my local Intranet.
Intranet Home Page (index.php):
<div id="username">my.username</div>
script.js:
$(document.body).load('http://intranet/index.php #username');
Now, I was wondering, instead of just displaying this value, how do I store it in a variable?