Orionsbelter Posted March 26, 2010 Share Posted March 26, 2010 Is it possible to use php to execute a javascript function? Link to comment https://forums.phpfreaks.com/topic/196652-how-to-use-php-to-execute-a-javascript-function/ Share on other sites More sharing options...
mikesta707 Posted March 26, 2010 Share Posted March 26, 2010 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>'; Link to comment https://forums.phpfreaks.com/topic/196652-how-to-use-php-to-execute-a-javascript-function/#findComment-1032480 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.