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!

 

 

 

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.