Answers for "how to run a js function in php"

PHP
-2

how to call js function from php

<?php
 if(your condition){
     echo "<script> window.onload = function() {
     yourJavascriptFunction(param1, param2);
 }; </script>";
?>
Posted by: Guest on June-08-2020

Code answers related to "how to run a js function in php"

Browse Popular Code Answers by Language