i want to add a javascript file in aspx page <head>
section, but this javascript file name changes dynamically. Can i use a variable for src attribute in script element as shown in below example
e.g:
var jsFileName = "JScript1"`
<script type="text/javascript" src="jsFolder/' + jsFileName + '.js"></script>
this is not working for me. Any help is appreciated.
jsFolder/JScript1.js
, is the file loaded? – Ashok Sep 27 at 9:24