7

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()
j08691
  • 204,283
  • 31
  • 260
  • 272
Arvind
  • 6,404
  • 20
  • 94
  • 143

3 Answers3

11

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:

Rob W
  • 341,306
  • 83
  • 791
  • 678
1

In Chrome, you add a tab, open bookmarks - click Other Bookmarks, right click in the bookmarks area, click add new page - and paste the URL.

In Firefox, just manage your bookmarks, click on the folder, right click in the bookmarks section and click New Bookmark.

0
  • You have to put the command in the URL of the very SmartGWT application that you're developing, not any blank page.

  • Making it become a bookmark bar is a good idea, click that bookmark when you're opening the application will open the console for you.

Envil
  • 2,687
  • 1
  • 30
  • 42