eva21 Posted August 6, 2008 Share Posted August 6, 2008 I have html as include files within my php code. Now I would obvouisly put the Javascript into my HTML, but is there a way i could call a Javascript function using PHP? Link to comment https://forums.phpfreaks.com/topic/118484-question-about-php-and-javascript/ Share on other sites More sharing options...
.josh Posted August 6, 2008 Share Posted August 6, 2008 No. PHP is parsed on the server and the resulting output (if any) is sent to the client, along with all the js, html, css, and everything else that's not PHP code. The client then renders it accordingly, executing the javascript, etc.. Link to comment https://forums.phpfreaks.com/topic/118484-question-about-php-and-javascript/#findComment-609944 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.