If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

yes but i don't know what it is ,how does it work and why is it there , does this .document have to be on my server/web host directory .also i need some help building a java script to work with my PHP program , set to play when i press my button. oz at the moment i does nothing but refresh

document is the internal browser object. All browsers represent html page as DOM tree. You can read more about DOM here.
Maybe you have to add preventing default action of your button or form to stop refreshing page. Please show your code to find a reason of refreshing the page.