js get file name from path
var filename = location.pathname.substr(location.pathname.lastIndexOf("/")+1);
var filename = fullPath.replace(/^.*[\\\/]/, ''); // works for both / and \ document.getElementById("retreiveData").innerHTML = "<p>Message</p> <a href=message>" + key + "</a> <p>ok?</p>"
Also in JavaScript:
- jquery AND operation
- pop-under window before current page
- laravel open json file in storage
- javascript array merge
- add webpack to react project tutorial
- Unterminated quote at columns 0-8 ['MM-yyyy] in expression ['MM-yyyy]
- how to implement a promise with daisy chaining in angular
- javascript find the longest string in array
- js numbers
- react hook form submit outside form
- swap function javascript
- cypress memory leak
- js only first 50 letters
- angular how to copy text with button
- button click function in js
- get page link angular
- queryselector name attribute
- returned data has p tags react
- js standard global
- js dom ready function
- javascript find duplicate in array
- jquery do something if toggle open and close
- datatables clear table
- fetch is not defined amazon-cognito-identity-js