How to programmatically open a JavaScript browser console?

How to open JavaScript browser console with JavaScript code?

if (ShowConsole() == false)
   alert('I cannot open your JavaScript console, please "
   + "use your browser\ menu to open manually.')
else console.log('now you can see some message')

I suggest that the function ShowConsole()does not exist and is a product of my imagination, you need to go to the menu and find the desired item and click on it. And do it differently in different browsers. I am looking for some browser API to help lazy developers.

By "open" I mean making it visible as if the user had selected the appropriate menu command.

+7
source share
1 answer

, , F12, . . , Firefox "CTRL + SHIFT + K", .

0

All Articles