NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Mike Grigsby on August 23, 2009, 08:20:40 PM

Title: Where to add javascript above the <body> tag
Post by: Mike Grigsby 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!
Title: Re: Where to add javascript above the <body> tag
Post by: Bruce 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
Title: Re: Where to add javascript above the <body> tag
Post by: Mike Grigsby 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!