How can I make or send information to php from javascript? Maybe I need MySql help..I dunno.
Here's my problem, I'll make it really simple so that it won't take too much of your time to understand.
HTML----
link to external script
script = javascript src=1.js
JAVASCRIPT----
Make random number
Store number either by making a new array or num = randomnum and setting +num+ to the random number
PHP----
Write $num to text file.
and while all this is going, the page has not lost it's focus on the HTML file. Basically what I mean is that all this happens in the background.
How exactly would I be able to do this?

Any help would be greatly appreciated. Thank you.