Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to call js function from php

<?php
 if(your condition){
     echo "<script> window.onload = function() {
     yourJavascriptFunction(param1, param2);
 }; </script>";
?>
 
PREVIOUS NEXT
Tagged: #call #js #function #php
ADD COMMENT
Topic
Name
6+8 =