Finding out JavaScript error on Visualforce page

 Hi All, In this post I am going to explain you all how we can able to find out the JavaScript code error which we written on visulforce page.we may use different JavaScript methods or codes for different functionality in visualforce page, while saving that visualforce page we will get only compiler error on apex tag but not on JavaScript code or other codes which we used on the pages.

To give demo I have created the page called 'JavaScriptErrorDemo' .

Below is the page: