It is possible to place javascript file in body tag, where the registerScriptFile function is called?
i need to place my js files after some html code inside body tag
It is possible to place javascript file in body tag, where the registerScriptFile function is called?
i need to place my js files after some html code inside body tag
Use CClientScript::POS_END when you register the file.
I don't need to place js file at the end of pageā¦
for example
<body> ...some html code here... my js file ...again some code.... </body>
If you need to put JS in middle of <body> then consider CHtml::script()