chrome/firefox- how to run a javascript command
Asked Answered
F

3

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()
Fulgurous answered 13/3, 2012 at 15:49 Comment(0)
K
12

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:

Kendakendal answered 13/3, 2012 at 15:51 Comment(0)
S
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.

Seth answered 3/4, 2012 at 10:41 Comment(0)
M
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.

Menses answered 8/3, 2016 at 9:39 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.