A
A
Alexander Timofeev2017-05-04 18:08:51
JavaScript
Alexander Timofeev, 2017-05-04 18:08:51

How to output chrome console value in html tooltip?

How to output chrome console value in html tooltip?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artem, 2017-05-04
@devspec

Values ​​do not get into the console by themselves - they are written there by some of your functions.
Make sure that your functions do not write to the console, but to the tooltip.

S
svetlov97, 2017-05-04
@svetlov97

I advise you to simply override the methods.

console.log = function(s){
  var tooltip = document.getElementById('tooltip');
  var span = document.createElement('span');
  span.innerHTML = s;
  tooltip.appendChild(span)
}

If it helped you, please mark the answer as correct for the convenience of other users.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question