Skip to content

PHP code snippet – How to call js function from ?

// The most basic method
echo '<script type="text/javascript">',
     'someJsFunc();', // Or Whatever
// However, if what you are trying to achieve requires more complexity,
// You might be better off adding the V8JS module, see link below
See also  Python code snippet - How to populate an image to template in django from views?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.