This topic is locked

add a script in the <HEAD>

5/17/2010 6:24:46 AM
ASPRunnerPro General questions
S
silk author

hello,

I need to add a script in the <HEAD>. I know I can do in HTML mode in visual editor but I want it to be easy to mantain (eg: inside an event or the header file).

The code I need to insert is this:
<LINK rel=stylesheet type=text/css href="custom.css">

<script type=text/javascript src="custom.js"></SCRIPT>
<script type=text/javascript>

Custom.init();

</SCRIPT>

A
ann 5/17/2010

Hi,
proceed to the Html mode of the Visual Editor tab of the Header and add the code.

S
silk author 5/17/2010

if I add to the html of the header PAGE, the code is inserted after the </HEAD> tag (where the header page is included).

I need to add the code between <HEAD> and </HEAD> tags.

A
ann 5/17/2010

Hi,
the only way is left is to add the code inside the

<head> </head>

in the HTML mode of the page.

S
silk author 5/17/2010

so I need to add it in html view to EVERY page? I have a LOT of pages in my project..

doing this way I also cannot reset a page

thank you

A
ann 5/18/2010

Hi,
unfortunately it's only way to add code to the <head> section.