I need help to find a code that will hide the file location on the server, like instead of showing:
I would want it to show: http://cbuy.webs.com/
for the whole site.
can and will anyone help me please?

This once again is not related to Java script, just set the default page in your webserver as "file.html" for that specific folder and voila when anyone types "http://cbuy.webs.com/file.html" he will see the file in his browser but "http://cbuy.webs.com/" in the address bar,
But why would you want to hide that is a mystery to me ??

one thing can be done. Bring all the content of file.html through HTTP response and put it on index.html by using javascript(innerHTML).