how to check is slect file html is selected or ot code example
Example 1: javascript check if object is empty
function isObjectEmpty(obj) {
return Object.keys(obj).length === 0;
}
Example 2: Javascript check for hash in URL
if (location.href.indexOf("#") != -1) {
//current url has a #hash in it
}