registerScriptFile() position question

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


...some html code here...

my js file

...again some code....


If you need to put JS in middle of <body> then consider CHtml::script()