JavaScript , VBScript Run from User end. PHP works from Server
I am explaining bit more details .
When we browse some pages say .. http://example.com/sample.php
Its request to the domain for sample.php file , php execute from server and return html to the browser , and the html display the pages .
Javascript is run-time language it excute after browsing the page or event base ... need more help feel free ask me