invoke a javascript function through php -
this question has answer here:
- how call javascript function php? 11 answers
i want invoke javascript function php, php script included before javascript.
<script type="text/javascript"> function myjsfunction(){ //js code } </script>
slightly odd question...
if want call js function on page load add bottom of dom on page load page created php script... instance...
<script> window.onload = function() { yourfunction(param1, param2); }; </script>
Comments
Post a Comment