I guess "No". The function you want to achieve is in the browser (purely client side). So it must be done at the client which means Javascript or some other client side language. But Javascript is probably the easiest one and the one which works across most browsers.
While that is true there is a thing called
ajax. I would suggest following an ajax tutorial where javascript can communicate with php after the page has loaded.
Reputation Points: 410
Solved Threads: 258
Occupation: Genius
Offline 3,003 posts
since Sep 2007