Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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);
  }
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: data-dismiss= modal in jquery 
Javascript :: mysql innodb_buffer_pool_size 
Javascript :: sleep sort 
Javascript :: console.dir depth 
Javascript :: string to number js 
Javascript :: jquery varable exists 
Javascript :: js get alphabet as array 
Javascript :: javascript to mask email address 
Javascript :: console load jquery 
Javascript :: adding font awesome to npm or react 
Javascript :: has decimal javascript 
Javascript :: jquery checked 
Javascript :: react router url params 
Javascript :: javascript get if IE11 
Javascript :: javascript loop through arrya 
Javascript :: javascript get date without time 
Javascript :: js escape url parameter 
Javascript :: jquerygrid disable sorting 
Javascript :: convert string to array in vue js 
Javascript :: js get local date 
Javascript :: how to find text in jquery with find function 
Javascript :: javascript loop through string 
Javascript :: jquery check input is disable 
Javascript :: document ready jquery 
Javascript :: jquery cast to string 
Javascript :: read data from json using node 
Javascript :: js map value in range 
Javascript :: get number of creeps screeps 
Javascript :: how to fill false into array javascript 
Javascript :: npm install router dom 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =