Hi Raj
As in help manual stated:
Enable running Javascript code. Yes—Enables running web Javascript steps, such as web_js_run() and web_js_reset(). No—Web Javascript steps can not be run.
With this option enabled you could add javascript function into the script (check here for more information).
Web protocol records the HTTP traffic between the browser and the server. To record/replay JavaScript you need to use a Click and Script Vuser like Ajax C&S or Ajax TruClient.
Rodolfo Leitón
HP LR/PC Support
If you are customer you can try posting on our internal forums for more personalized support.
For LoadRunner here.
For Performance Center here.
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.
If you found this information useful please leave a kudo.