PHP Classes

File: click-btn.back.js

Recommend this page to a friend!
  Classes of Chun-Sheng, Li   Web Analyzer   click-btn.back.js   Download  
File: click-btn.back.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Web Analyzer
Analyze contents of pages retrieved with a browser
Author: By
Last change:
Date: 1 year ago
Size: 800 bytes
 

Contents

Class file image Download
function clickBtn() { var pTag = ""; var endP = ""; var len = 0; for(var index=0;index<len;index++) { pTag += "<p>This is text"; endP += "</p>"; } var body = document.getElementById("the-body"); var now = Date.now(); body.innerHTML = pTag + "This is text" + endP; var curr = Date.now(); console.log("The measure time with Date.now: " + (now)); console.log("The measure time with Date.now: " + (curr - now)); var responseHtml = "<script>console.log(Date.now())<\/script>"; responseHtml = responseHtml.replace(/<\/?sc[^\>]+>/g, ""); var ele = document.createElement("script"); ele.innerHTML = responseHtml; document.body.appendChild(ele); }