Save the file named abc.js
to abc.js.php
, hence server will come to know that it contains some php question, so that it will process first php content then replace the result in .js
file and send to browser, By doing this the .js
file will contain dynamic contents..