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? Quote 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.. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.