Jump to content

How to use php to execute a javascript function?


Orionsbelter

Recommended Posts

as in, call a javascript function in PHP?  well remember, you can echo html via the echo statement, so you could do something like

 

//assume js function is called foo
echo '<script type="text/javascript">';
echo 'foo()';
echo '</script>';

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.