Is it possible to set a button's onclick action to a javascript variable? The idea is that we are controlling a table with javascript. Whenever one clicks on a row of that table, we update a javascript variable. That var would be the _GET var for the php script to be run.