I have a javascript function that requries the absolute path to an image but I don't have the absolute path avaliable, only the relative path. Is thre a way to convert the relative path to an absolute path in javascript to solve this?

Thanks.