最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

chromefirefox- how to run a javascript command - Stack Overflow

programmeradmin0浏览0评论

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()

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()
Share Improve this question edited Mar 13, 2012 at 15:51 j08691 208k32 gold badges268 silver badges280 bronze badges asked Mar 13, 2012 at 15:49 ArvindArvind 6,47420 gold badges96 silver badges145 bronze badges
Add a comment  | 

3 Answers 3

Reset to default 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:

  • Firefox: Ctrl Shift K - See Using the web console.
  • Chrome: Ctrl Shift J - See Developer tools.

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.

  • 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.

发布评论

评论列表(0)

  1. 暂无评论