Javascript within the <head> </head>

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmel
    New Member
    • Oct 2007
    • 69

    Javascript within the <head> </head>

    Hi guys,

    I have yet another question. I am working with this html form that uses a template.

    <head> //is greyed out
    //some greyed out <style >stuff is next
    <!-- InstanceEndEdit able -->//greyed out
    </head>//greyed out

    <body>//greyed out
    //some of the template stuff like image and banner goes here, also greyed out
    <!-- InstanceBeginEd itable name="body" -->//greyed out stuff ends here
    //here I where i can start typing in the script.

    My question is.....where do I put <script src="whatever.j s"></script>
    if it is supposed to be within the <head> tag and the <head> tag is greyed out.
    Can i put it as the first thing after <!-- InstanceBeginEd itable name="body" -->.

    please help
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5388

    #2
    hi ...

    it is good practice to place it in the head of the page ... but you could put it everywhere ... the only constraint is to put it before calling any functions in it ...

    kind regards

    Comment

    • phpmel
      New Member
      • Oct 2007
      • 69

      #3
      oooohhhh.....th ank you so much.

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5388

        #4
        no problem :) ... post back to the forum anytime you have more questions ...

        kind regards

        Comment

        Working...