API
Version 7.x > API > Adding a javascript file reference to <head> View modes: 
User avatar
Certified Developer v6
Certified Developer v6
Dave - 12/11/2012 2:32:03 PM
   
Adding a javascript file reference to <head>
Hi,

I am wondering if the Kentico API has a method for registering a script file into the <head> element. It looks like the ScriptHelper.RegisterScriptFile method registers files into the <form> element. We prefer not to have our <script>'s loaded in there. Is this possible in your current API?

Thanks,
Dave

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 12/14/2012 2:07:58 AM
   
RE:Adding a javascript file reference to <head>
Hi Dave,

what about loading a script in the <head> section of your master page?

Best regards,
Martin Danko