[Solved] JavaScript is Not Working When I Put It Directly Into Template HTML


Hello. Can somebody help me. Then i put this code

<script type="text/javascript">


in HTML/Javascript it works fine, but then i put it on Teplate - Edit HTML before or after </head> it dosn’t work. Can anybody tell me what i doing wrong?


Did you got any error while saving this script? If no, try to put this script above </head> because the scripts which work inside <body> section always work if putted on <head> section but the scripts which work inside <head> section probably not work in <body> section.


Try to add your javascript in the following way:

    <script type='text/javascript'>
//<![CDATA[   /*Paste Your Code Here*/    //]]> </script>


Thanks. i don’t know, what was the problem but the code is already work.