How do I define a variable in javascript with echo function, from the external php file?
We have theconfigfile.php, thejsfile.js an
In thephpfile.php,
Then you can access it with config.url in your javascript.