Well im going to take a shot at this one although it makes little sense to me.
If you are going to use javascript and then have a onclick execute a php page? That would link like any html page. But you can't have PHP run like javascript client side. You will have to reload the page on clicking on anything, whereas javascript can update without page remaking.
Also you can use PHP to write dynamic javascript, to suite your needs but i dont think that is addressing this question.
You will probably have to rewrite this question to get any serious replies.