Click here to Skip to main content
15,886,004 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
//how do i enter/control in src by javascript

<script

type="text/javascript" src='sd.min.js'>

</script>

What I have tried:

i not tried,

//how do i enter/control in src by javascript

<script>

type="text/javascript" src='sd.min.js'>

</script>
Posted
Updated 24-May-16 20:39pm
Comments
Raje_ 25-May-16 2:36am    
Do you mean you want to change src attribute of Script tag using Javascript?

1 solution

You can not change src attribute of a Script tag. It can only be set once.

Source : javascript - Changing &quot;src&quot; attribute of &lt;script&gt; - Stack Overflow[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900