I'm trying to 'call' a function stored in my .js file from a .php page using this :
echo "<script>myFunction(arg1, arg2)</script>";
and it just doesn't go though. But it works when I use html instead :
<script>myFunction(arg1, arg2)</script>
I'll probably feel stupid when you'll provide me with the answer but I just don't get it. Thanks!
EDIT: sorry, more details. The function pops an alert dialog, and I'm calling it when the page just got loaded