NetTalk Central

Author Topic: Where to add javascript above the <body> tag  (Read 3416 times)

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Where to add javascript above the <body> tag
« on: August 23, 2009, 08:20:40 PM »
What's the best place to add some javascript into the <head> area above the <body> on a page? Is it possible to do this globally? It looks like the generated code doesn't allow for a coding point above the body. Any suggestions? Thanks!
Mike Grigsby
Credify Systems
Central Oregon, USA

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Where to add javascript above the <body> tag
« Reply #1 on: August 23, 2009, 09:47:41 PM »
Hi Mike,

there are a couple answers to this question, but I've had this conversation privately with someone else recently. So perhaps before I answer I need to tease some details out of you.

Firstly - why do you want to put your JavaScript in the <head> section?

Secondly - why not just put the JavaScript in a separate js file, and link that js file from the global scripts tab?

Cheers
Bruce

Mike Grigsby

  • Sr. Member
  • ****
  • Posts: 380
    • Yahoo Instant Messenger - onthedotsoftware
    • View Profile
    • MyHomeAssets! Software (among others)
Re: Where to add javascript above the <body> tag
« Reply #2 on: August 23, 2009, 10:37:21 PM »
1. I don't know.
2. Because I'm a dumbass<g>. Let me give this one a shot. Doh!

Thanks!
Mike Grigsby
Credify Systems
Central Oregon, USA