Simple, you just run the java code in the PHP, like add a php code into the same code you have now like
----------------
*PHP START TAG REMOVED DUE TO FILTER*
if onclick or whatever, then put your java script tags after and call the function in those tags.
*PHP END TAG REMOVED DUE TO FILTER*
----------------
And you do know, HTML comes with a solution to this, HTML has an onclicked method, and you just type your java code into the onclicked tag or whatever and it will run with the other java script on the page. |