Forum Moderators: open
i have the folowing problem:
i have to load dynamically javascripts with different names (in this scripts are only document.write() things) . I tried to solve this with variables in this way:
<script language="JavaScript" src='http://www.somewhere..'+location.search>
</script> does anybody know how to solve this problem?
<html>
<head>
</head>
<body>
<a href="ThisSite.html?c=1561&u=3">load </a>
<br>
<a href="ThisSite.html?c=1561&u=2" >load 2</a>
<br><script type="text/javascript">
<!--
var s = document.createElement("script");
s.type = "text/javascript";
s.src = "http://www.betterupdate.de/asp/mycontent.asp" + location.search;
document.getElementsByTagName("head")[0].appendChild(s);
//-->
</script>
<script language="JavaScript" src=s >
</script>
</body>
</html>