HighDots Forums  

<HEAD> or <BODY>?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss <HEAD> or <BODY>? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
.Adam Jones
 
Posts: n/a

Default <HEAD> or <BODY>? - 07-14-2004 , 12:39 PM






I'm using java code from different sites and some to the code tells to place
the" <SCRIPT LANGUAGE="JavaScript"> " in the head tag and others in the body
tag.

What is the difference?

Is there a site that gives a tutorial or guidlines for java?

Thanks.



Reply With Quote
  #2  
Old   
darrel
 
Posts: n/a

Default Re: <HEAD> or <BODY>? - 07-14-2004 , 12:43 PM






Quote:
I'm using java code from different sites and some to the code tells to
place
the" <SCRIPT LANGUAGE="JavaScript"> " in the head tag and others in the
body
tag.

What is the difference?
First of all, that's javaSCRIPT you are talking about...NOT Java. Those are
entirely different things.

The difference between the tags is just as it states. Some scripts go in the
HEAD tags, some in the BODY tags. Scripts in he HEAD tags are usually
function declarations that are then called from within the scrips in the
BODY tags.

-Darrel




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.