This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes SCRIPT tag inside web page (HEAD vs BODY) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "SCRIPT tag inside web page (HEAD vs BODY)" Watch "SCRIPT tag inside web page (HEAD vs BODY)" New topic
Author

SCRIPT tag inside web page (HEAD vs BODY)

Manio Manegra
Greenhorn

Joined: Sep 15, 2006
Posts: 8
Hello everybody,
I'd like to know if there is any difference placing your SCRIPT tag inside HEAD tag instead of putting into BODY tag.
I know that conceptually you should put your SCRIPT tag in the HTML header section if its code is about a deferred action, but the main point is: what is the difference in browser behavior in those two scenarios?

Anyone could help?

Bye Manio
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
There really is no major difference that I am aware of.

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: SCRIPT tag inside web page (HEAD vs BODY)
 
Similar Threads
Scripts inside the head tag
JavaScript
enabling button when text field changes
Animate method not working using easeofBounce
Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :