6
You can do it like this:
console.log('%c Espere!', 'color: red; font-size: 20px;');
It is in the second parameter that you put the styles you want.
6
6
You can do it like this:
console.log('%c Espere!', 'color: red; font-size: 20px;');
It is in the second parameter that you put the styles you want.
2
You can get this feature with the syntax below, where %c
activates CSS styles to the message:
console.log('%c Olá!', 'color: red; font-size: 30px;');
Does not work in IE and Edge (in the case of Facebook, the "alert" message displayed in the question is not even displayed in these browsers).
But in IE and Edge by chance Facebook prints color?
@Jeffersonquesado No IE and Edge print nothing. Message does not appear.
This "no IE or Edge" detail would make your answer even better =]
@Jeffersonquesado Good idea. Obg!
I’m happy to help =D
Upgrade, Edge Chromium works perfectly..
Browser other questions tagged javascript google-chrome firefox
You are not signed in. Login or sign up in order to post.
Thank you very much!
– Ronald Araújo