javascript get all script tags on page
var scripts = document.getElementsByTagName("script");
for (var i = 0; i < scripts.length; i++) {
if (scripts[i].src) {
console.log(i, scripts[i].src);
} else {
console.log(i, scripts[i].innerHTML);
}
}
Also in JavaScript:
- scroll to top vue
- set timer
- remove whitespace with regex javascript
- require jquery tampermonkey
- ckeditor inline editor example
- node http request
- mysqli_real_escape_string use with ajax
- javascript countdown timer
- document is not defined javascript in nuxt js
- how to check leap year in javascript
- toLocalString
- react grid
- img src in react js
- countdown timer in seconds react
- jquery count elements
- javascript convert int to float with 2 decimal places
- v-on:change vue
- js create element with class
- split into sentences at any punctuation javascript
- svn node remains in conflict
- jquery ajax basic authentication
- find length of longest string in array javascript
- node js post multipart/form-data
- how to routing in react js