# Project Properties Window: Run

You open the HTML5/JS Project Properties dialog box by right-clicking any HTML5/JS project node in the Projects window and choosing Properties.

The Run page enables you to specify the target browser and the page that opens in the browser when you run the project. In this page you can specify the following options.

Element | Description
--- | ---
Browser | Select the browser that the IDE uses to run the application. The following options are available when Chrome with NetBeans Integration or Embedded WebKit Browser are selected. Auto-refresh. When selected, the browser page is automatically reloaded when the HTML file or any files that are used by the HTML file are saved. Synchronize Navigator and browser element highlighting. When selected, when your cursor hovers over an element in the Navigator of the IDE the corresponding element is highlighted in the browser. When deselected the element in the browser is not highlighted when the element in the Navigator is selected.
Start File | The file that is displayed in the browser when you run the application. The default page is typically `index.html`.
Web Server | Select one of the following server options from the drop-down list.
Lightweight Embedded | Select this option to use the lightweight embedded web server. When you run the project the IDE will open the browser to the application index page on localhost. This option is the default.
External | Select this option to use a server installation that is hosting the application. If you select this option you need to specify the URL for the application. When you run the project the IDE will attempt to open the specified URL in the browser. It is not possible to manage the external server from the IDE.
Web Root | This option is only available when you use the Embedded Lightweight web server. If no web root is specified the URL for the project will be http://localhost:<PORT_NUMBER>. You should specify a web root property if you want to run multiple projects simultaneously.

Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.