File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Is there any difference if we mentin the script tags inside the Head Tag and the body Tag : Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :" Watch "Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :" New topic
Author

Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2231

Hi

Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :


Thank you.


Save India From Corruption - Anna Hazare.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Yes because they fire at different times if you are not waiting to onload/document ready.

If you want to follow what Yahoo says: http://developer.yahoo.com/performance/rules.html#js_bottom

Eric
 
 
subject: Is there any difference if we mentin the script tags inside the Head Tag and the body Tag :
 
Threads others viewed
3 questions about javascript
<script> Block in Html
Animate method not working using easeofBounce
SCRIPT tag inside web page (HEAD vs BODY)
enabling button when text field changes
developer file tools