- Code: Select all
<script type="text/javascript">
data=window.location.search;
if (data.substring(0, 1) == '?') {
data = data.substring(1);
}
function staticLoadScript(data)
{
document.write(data);
document.write('<script src="js/', data, '" type="text/JavaScript"><\/script>');
}
staticLoadScript(data);
document.write(data)
</script>
my data variable has somedata.js and I need to load that js file
any and all help will be greatly appreciated, thanks!


