Last update: December 17th 2011


Chrome:

  1. Press CTRL + SHIFT + I to open the Developer Tools.

  2. Click on the "Open console." icon in the bottom left corner.

or

  1. Press F12 to open Developer Tools

  2. Click on the "Console" tab


Safari:

  1. Press CTRL + ALT + I to display the Web Inspector.

  2. Click on the "Open Console." icon in the bottom left corner.

Note: this only works if the "Show Develop menu in menu bar" check box in the Advanced tab of the Preferences menu is checked!


IE9:

  1. Press F12 to open the developer tools.

  2. Open the Script tab, click the "Console" button on the right.


Firefox:

  1. Press CTRL + SHIFT + K to open the Web console.

or, if Firebug is installed:

  1. Press F12 to open Firebug

  2. Click on the "Console" tab


Opera:

  1. Press CTRL + SHIFT + I to open Dragonfly.

  2. Click on the "Console" tab.

link|improve this question
For Firefox using firebug would be ideal. Then you would use F12 to open it. – John Conde Jan 31 '11 at 23:44
@John I thought that Firefox had a built-in JavaScript console, but I'm not so sure anymore. – Šime Vidas Feb 1 '11 at 0:31
I'm pretty sure it does. But so many people use firebug I'm sure it gets lost in the shuffle. – John Conde Feb 1 '11 at 0:47
@John Yes, I found it :) – Šime Vidas Feb 1 '11 at 1:20
Did mvark answer your question or do you need some more information? – Christopher Feb 14 '11 at 19:41
show 4 more comments
feedback

2 Answers

up vote 2 down vote accepted
+50

To indirectly reach the Console in Opera (checked on v9.6) the shortcut is CTRL + SHIFT + I while on Safari 5 (on Windows) it is CTRL + ALT + I

I wish all the browser makers could get together to standardize the keyboard shortcuts.

Update: It appears that the REPL tab under the Scripts tab in Opera Dragonfly in Opera 11 is similar to the Console option that was available in previous Opera versions.

I did not found much documentation on REPL after a cursory search, except for this article which has an indirect reference.

I tried this command in REPL with the Google home page open & it executed fine i.e. it hid the Google logo - document.getElementById('logo').style.visibility = 'hidden';

link|improve this answer
CTRL + SHIFT + I will open the dev tools in Opera. But where is the JavaScript console? Where can I input JavaScript code and execute it? – Šime Vidas Feb 1 '11 at 13:51
CTRL + ALT + I does nothing in my Safari 5 on Windows 7. Can you confirm that it works? – Šime Vidas Feb 1 '11 at 13:54
That could be because you do not have the Develop menu option enabled. To activate this option, go to Edit > Preferences & in the Advanced tab enable the "Show Develop menu in menu bar" checkbox option. – mvark Feb 1 '11 at 14:32
That was my problem. Stupid Apple disabling developer features by default. :) Thanks. – Šime Vidas Feb 10 '11 at 16:59
Yes, that is it. I overlooked that REPL tab at the bottom LOL – Šime Vidas Feb 21 '11 at 13:11
feedback

Opera DragonFly

link|improve this answer
Yes, I know about Dragonfly, but I am unable to locate the JavaScript console (if there is one in it at all). I need to know where the JavaScript console is... – Šime Vidas Feb 21 '11 at 4:29
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.