I'm trying to log html to the browser's console in order to notify user, for example, when user open developer tools a header logged to console.
Just like Facebook
I have tried this,
console.log('<h1 style="color : red">Pay Attention</h1>');
but it's logged as string
Try this
console.log('%c Stop ', ' color: red; font-size:28px;');
you cand find all by googling customize javascript console
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With