My Approach:
function fetchCurrentPath(){
var objFSO = new ActiveXObject("Scripting.FileSystemObject");
return objFSO.GetFolder(".").Path;
}
In the HTML file, I have included this code. The objective is to retrieve the path of the folder where the HTML file is situated.
However, despite my efforts, it consistently retrieves the desktop path.