You open the HTML5 Project Properties dialog box by right-clicking any HTML5 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.
|
Start File |
The file that is displayed in the browser when you run the application. The default page is typically |
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 © 2014, Oracle and/or its affiliates. All rights reserved. |