I want to validate the existence of a HTML file before opening it in a new tab.
How can I do so using pure JavaScript?
I am storing the file's location in path variable.
path = "F:\Folder_JS\File1.html";
//I want to check here whether there exists such a file or not before opening it new tab
myWindow = window.open(path,'_blank');