chrome/firefox- how to run a javascript command

Arvind picture Arvind · Mar 13, 2012 · Viewed 17.2k times · Source

I am using a gwt based ui design framework (called GXT). In the docs for this framework, it is mentioned that running "javascript:isc.showConsole()" when the app is running, will open the developer console in browser.

However when I run this in Chrome it instead does a google search for the command- in firefox it simply does not work.

How do I execute this javascript in firefox or chrome--

javascript:isc.showConsole()

Answer

Rob W picture Rob W · Mar 13, 2012

Bookmarklets cannot be executed in the location bar/omnibox any more.

You have to bookmark the javascript: link before it can be executed.
A better solution is using the built-in Developer tools, in which code can be pasted and executed in the current page: