How to set the initialization file in an HTML project? [closed]

-1

Whenever I create an HTML project in Netbeans it creates a file index.html and until then, the problem is when I want to create a new HTML file within that project. I create the new file and when I debug or execute it does not open this file created only the index.html . How do I open this new file and not the index.html ?

    
asked by anonymous 28.06.2015 / 02:44

2 answers

1

In NetBeans 8. In the project tabular where your project is listed, choose the project in question. Then:

  • With the mouse pointer at the top of the project press the right mouse button
  • From the menu that appears choose properties
  • Opens a project property manager
  • Choose the "Run" option
  • In the input box change the "Start File" to the file you want to run each time you run the project.
  • NOTE: By default Netbeans defines that index.html is the starting point for any HTML5 project. By experience it is good to keep some defaults and this is one of them, but if you want to change and specifically for a project, here is the answer.

        
    28.06.2015 / 14:59
    0

    When creating any web project in Netbeans it automatically defines a file to be the initiator, in HTML5 the index.html will be this file.

    You can define how the project will run by changing the project properties. To do this, right click on the HTML project and select properties :

    Inthe" execute " tab you can define the initialization file (which default is the index.html ) of execution:

        
    28.06.2015 / 23:20