How to Capture the console log in javascript and redirect it to html page
To capture the console.log message,we can hijack the js function
(function(){ var syslog = console.log; //get the original method console.log = function (message) { // message append to html node syslog.apply(console, arguments); // invoke the original method }; })(); // Execute the function immediately
date2019-04-12 12:47:33 From:www.jquerypluginhub.com Author:JPH
Comments
Leave a Reply
Your email address will not be published. Required fields are marked *