jquery get src of image
$('.img1 img').attr('src');readTextFile("file:///C:/your/path/to/file.txt");
function readTextFile(file)
{
var rawFile = new XMLHttpRequest();
rawFile.open("GET", file, false);
rawFile.onreadystatechange = function ()
{
if(rawFile.readyState === 4)
{
if(rawFile.status === 200 || rawFile.status == 0)
{
var allText = rawFile.responseText;
alert(allText);
}
}
}
rawFile.send(null);
}
Also in JavaScript:
- javascript cash register
- box shadow javascript style change
- useRef
- setting multiple styles in javascript
- how to concatenate strings javascript
- reactjs context
- jquery basic authenticated get user
- stopped typing jquery
- prevent specific state redux-persist
- vue dynamic create watch
- javascript on input change
- How do you detect whether or not a word is a palindrome in javascript
- md5 checksum javascript
- js get the filename you uploaded
- regex not something
- input show validation message
- javascript date now
- js do every x seconds
- how to add toaster in angular 9
- create angular project cli version 8
- how to set JSON data bootstrap treeview with java
- javascript date minus seconds
- how to add json data to xmlhttprequest
- page is loading from previous page scroll in reactjs