I have the following:
<script id="myID" language="JavaScript">
I want this:
<script id="myID" language="JavaScript" src="myJSFile.js">
and I want the "myJSFile.js" portion of the src= property inside this tag to come from a var for example the var srcfile="myJSFile.js" has been set in some preceding function and is in scope.
So it would look like this?
<script id="myID" language="JavaScript" src= srcfile >
How do I tell the script tag to use this var? I think it would be by a DOM method, and it seems that there should be a way to do this, but I don't know how. Thanks!
Jonathan.
<script id="myID" language="JavaScript">
I want this:
<script id="myID" language="JavaScript" src="myJSFile.js">
and I want the "myJSFile.js" portion of the src= property inside this tag to come from a var for example the var srcfile="myJSFile.js" has been set in some preceding function and is in scope.
So it would look like this?
<script id="myID" language="JavaScript" src= srcfile >
How do I tell the script tag to use this var? I think it would be by a DOM method, and it seems that there should be a way to do this, but I don't know how. Thanks!
Jonathan.