js get file name from path code example
Example 1: get filename from url js
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
Example 2: how to name a file path in document.geteleementbyid
document.getElementById("retreiveData").innerHTML = "<p>Message</p> <a href=message>" + key + "</a> <p>ok?</p>"