Is It Ok To Put Javascript In Body?
- Forums
- Javascipt
- Is It Ok To Put Javascript In Body?
Just A Question I Have Whether Or Not Its Ok To Put The Javascript In The Body Of The Html Document [2191], Last Updated: Mon Jun 24, 2024
Junnbaya5
Tue Nov 10, 2009
0 Comments
440 Visits
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