I'm using magento 1.9 version.
Called the js function in my phtml file. It shows the error :
(index):403 Uncaught ReferenceError: myFunction is not defined. How to solve this.