Maybe you can modify it to fit your needs.
Code: Select all
var vLoc = window.location.href ;
var vBase = vLoc.substr(0, vLoc.lastIndexOf("/", vLoc.lastIndexOf("/")-1)+1) + "Video/" ;
Code: Select all
var vLoc = window.location.href ;
var vBase = vLoc.substr(0, vLoc.lastIndexOf("/", vLoc.lastIndexOf("/")-1)+1) + "Video/" ;