Sorry I cant speak German.
This script extracts html name and give it to a src with a js file in an other domain.
There is a syntax problem in this script which I couldnt find:
<script language="JavaScript"><!--
var fileName =location.pathname.substring(location.pathname.lastIndexOf('/')+1);
document.write('<script src="http://www.abc.com/path/'+fileName+'.js"><\/script>');
//--></script>
What is the correct syntax?
Thanks
This script extracts html name and give it to a src with a js file in an other domain.
There is a syntax problem in this script which I couldnt find:
<script language="JavaScript"><!--
var fileName =location.pathname.substring(location.pathname.lastIndexOf('/')+1);
document.write('<script src="http://www.abc.com/path/'+fileName+'.js"><\/script>');
//--></script>
What is the correct syntax?
Thanks