I have a webview in which i have to open online chat when it is loads. I have a javascript code for the online chat . I'm confused that how can i use it. I have tried to open apple website its working fine , but how can i use javascript code in Objective c. I'm quite new to language and this is first time i'm using this. I have added javascript code in a folder and add it to the resources folder in my app.