4

Is it possible to open the client's web console in javascript (CTRL+SHIFT+K on Firefox)? Define the size, the position, else?

Thank you

3
  • 1
    You just said that you only have to press Ctrl+Shift+K, so it appears to be possible indeed? Commented Jan 8, 2018 at 17:21
  • 2
    @Bergi simulating those keypresses through JavaScript won't open the client's console, though Commented Jan 8, 2018 at 17:26
  • 2
    I honestly hope not. I wouldn't want a malicious site to be able to force my dev tools open or try to trick my mother into thinking that all those console error messages mean that she has a virus and that she needs to provide her CC details right now. Commented Jan 8, 2018 at 17:31

1 Answer 1

1

I haven't heard of this being possible, and I couldn't find anything in a recent search about how to do it either. I did find another stackoverflow conversation about something similar here: Can I programmatically open the devtools from a Google Chrome extension?

From that, I surmise that if it's not possible from a browser extension, it seems even less likely to be possible from plain JavaScript.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.