so the other day i was reading this javascript book where it shows you how to put the javascript code in your html pages. it said to put it in the HTML documents, but it didnt say not to put it within the body of the page.

so today i was installing this script i wanted to integrate with my php and html page but it said to put the javascript code between the <head> and </head> which means before the body

so i put it after the body anywayz and it worked. so my friend, if you are also wondering as i am, you dont have to put it before the body. i have seen some pages they even put it before the <html> tag and even at the end of the document. javascript will work anywhere you put it in the page really