Configure button to open browser console (Google Chrome)

Asked

Viewed 355 times

0

Good morning guys, my question today is how can I set up a button on a web page to open the console (for example, Chrome uses the Ctrl+Shift+I button combination). This code has to be developed using HTML and Javascript, as these are the languages that I am currently studying.

  • 3

    I believe it is not possible. The browser security bubble does not allow interaction with the console tab, this would be a tremendous failure... Perhaps via extension...

  • 1

    Specifically Chrome, you have a question on Soen about opening devtools: https://stackoverflow.com/questions/6801577/can-i-programmatically-open-the-devtools-from-a-google-chrome-extension (I do not know if it is considerable, given the time it was made: 2013). About the console, what you can do is simulate the console in some HTML element (similar to the snippet here site)...

  • Got it, thank you so much for the personal information.

1 answer

-1

There are no ways to do this, because devtool is not something for users to use. I’m not sure why you would like to do this, but it’s not possible.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.