Asked  6 Months ago    Answers:  5   Viewed   27 times

When using Google Chrome, I want to debug some JavaScript code. How can I do that?



Windows: CTRL-SHIFT-J OR F12

Mac: ?-?-J

Also available through the wrench menu (Tools > JavaScript Console):

JavaScript Console Menu

Tuesday, June 1, 2021
answered 6 Months ago

You can run Chrome in application mode.


Chrome.exe --app=


/Applications/Google Chrome --app=


google-chrome --app=

This removes all toolbars, not just the address bar, but it will definitely increase your real estate without having to use Kiosk mode.

Saturday, July 31, 2021
answered 4 Months ago

It's not done with JavaScript, but with plain HTML. The way it works is, you create an <a> with an href attribute with a protocol other than the ones a browser usually recognizes - that is, other than http, https, etc.

If the user has installed an application that recognizes the protocol, the browser will try to open that application.

Similarly to Zoom, for IRC links, you can see something like:

<a href="irc:(IRC INFO HERE)">Link</a>

If you click on that link, and your machine has software installed that recognizes the irc protocol, that application can be opened directly by clicking on the link (possibly asking you if you want to open it first).

There are lots of different protocols for many different applications. They're quite handy for getting info on a web browser to an application on the user's computer.

For Zoom in particular, there's documentation on how to use its protocols here:

Wednesday, August 18, 2021
answered 4 Months ago

This is a feature on chrome to separate between page logs, when you have the "preserve logs" option checked. It shouldn't show up if you uncheck that box and reload the page.

It's just telling you that the browser change to another page.

Monday, September 13, 2021
answered 3 Months ago

Yes, you can pass that flag to Google Chrome if you start Chrome with --js-flags="--allow-natives-syntax".

(I should point out that you should not generally run Chrome with that flag turned on; use it only for debugging of websites you trust.)

Saturday, November 20, 2021
answered 1 Week ago
Only authorized users can answer the question. Please sign in first, or register a free account.
Not the answer you're looking for? Browse other questions tagged :