How to use JavaScript inside Visualforce pages?
Using JavaScript inside Visualforce pages gives you access to a large range of existing JavaScript functionality, such as JavaScript libraries, and other ways to customize your pages. Action tags, like <apex:actionFunction> and <apex:actionSupport>, support Ajax requests. The best way for including JavaScript inside a Visualforce page is placing the JavaScript in a static resource, then