# Running JavaScript in Browser

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/ruby/2026.3/llms.txt).

Procedure: Run a file with JavaScript from RubyMine

> **Tip:**
> This method works  if you do not have a default server configuration. To check that, choose `Tools | Deployment | Configuration`. In the left-hand pane of the Deployment dialog that opens, the default configuration is shown in bold. To remove this status, select the configuration and click the Use as Default toolbar button ![the Use as default button](https://resources.jetbrains.com/help/img/idea/2026.3/app.actions.setDefault_dark.svg).

1. In the editor, open the HTML file with the JavaScript reference. This HTML file does not necessarily have to be the one that implements the starting page of the application.

2. Do one of the following:

* Choose `View | Open in Browser` from the main menu or press `Alt+F2` (Windows), `⌥ F2` (macOS), `⌥ F2` (IntelliJ IDEA Classic (macOS)), `⌥ F2` (macOS System Shortcuts), `Alt+F2` (XWin), `Alt+F2` (GNOME), `Alt+F2` (KDE), `Alt+F2` (Emacs), `Alt+F2` (Sublime Text), `Alt+F2` (Sublime Text (macOS)), `Alt+F2` (Visual Studio), `⌥ F2` (Visual Studio (macOS)), `Alt+F2` (TextMate), `Alt+F2` (NetBeans), `Alt+F2` (Eclipse), `⌥ F2` (Eclipse (macOS)). Then select the desired browser from the list.

* Hover over the code to show the browser icons bar: ![the RubyMine icon](https://resources.jetbrains.com/help/img/idea/2026.3/product-client.artwork.rubymine.svg) ![Chrome](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.chrome.svg) ![Firefox](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.firefox.svg) ![Safari](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.safari.svg) ![Opera](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.opera.svg) ![Internet Explorer](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.explorer.svg) ![Edge](https://resources.jetbrains.com/help/img/idea/2026.3/app.xml.browsers.edge.svg) . Click the icon that indicates the desired browser.

## See also

### Procedures

[HTML](editing-html-files.html) [Debug](debugging-code.html)

### Reference

[Web Browsers and Preview](settings-tools-web-browsers.html) [Debug tool window](debug-tool-window.html)

