how do u change the src of a javascript tag (by using a javascript method that is)
cause i need to upload info from a text file to a <div>
![]()
| SitePoint Sponsor |
how do u change the src of a javascript tag (by using a javascript method that is)
cause i need to upload info from a text file to a <div>
![]()





erm i'm not sure whether you mean this
PHP Code:
if (your_condition)
{
loc='js1.js';
}
else
{
loc='js2.js';
}
document.write('<script type="text/javascript" src="' + loc + '"></' + 'script>');
Bookmarks