Jump to content

Possible to add JS into HEAD area when Template has already closed it?


vozzek

Recommended Posts

Hi all,

 

Quick question:  The pages on my website are based upon the php inclusion of header and footer templates.  Both the <head> and </head> tags exist within the header template.  Between them, the following code: 

<SCRIPT LANGUAGE="JavaScript" SRC="/java.js"></SCRIPT>

 

So my java.js file contains JS functions common to all pages.

 

Now I'm on a page where I need to add a JS function, but I only need it for this one page.  I need it to go between the <head> </head> tags.  Obviously I don't want to add it to the java.js file and have it show up site-wide.  So what do I do?  Where would I place this function to keep it specific to that one page?

 

The function itself just validates some drop-down info before allowing a form to file.

 

Thanks in advance!

 

 

 

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.