Kopieren Sie den Code -Code wie folgt:
<Script>
Funktion getrootPath () {
var strlylllpath = window.document.location.href;
var strpath = window.document.location.PathName;
var pos = struflepath.indexof (strPath);
var prepath = strufleLPath.substring (0, pos);
var postpath = strad.substring (0, strad.substr (1) .Indexof ('/')+1);
Return (prepath+postpath);
}
var webpath = getrootPath ();
</script>