Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
85
rated 0 times [  90] [ 5]  / answers: 1 / hits: 149787  / 14 Years ago, mon, june 14, 2010, 12:00:00

How wrong is it to place the script tag after the closing tag of the body (</body>)?


<html>
....
<body>
....
</body>
<script type="text/javascript" src="theJs.js"></script>
</html>

More From » html

 Answers
12

It won't validate outside of the <body> or <head> tags. It also won't make much difference — unless you're doing DOM manipulations that could break IE before the body element is fully loaded — to putting it just before the closing </body>.


<html>
....
<body>
....
<script type="text/javascript" src="theJs.js"></script>
</body>
</html>

[#96502] Friday, June 11, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
leandraannabellar

Total Points: 255
Total Questions: 89
Total Answers: 89

Location: England
Member since Sun, May 21, 2023
1 Year ago
;