# WebPage

A WebPage is used to build a single page of an HMI UI, using the Web Page Editor. The desired interactive elements are dragged and dropped onto the WebPage from the WebPage Toolbox (or from the Tags Window, when a tag can be dragged-and-dropped to the WebPage). Afterward, you can either bound the WebPage elements to tags, or use its script points to write custom JavaScript code for the element.

To test a WebPage, place the 视觉系统 online. The built WebPage does not work while offline.

注意:

- Jobs set up with the Job Wizard or auto-generated by the adapter contain pre-made WebPage templates by default. See the Auto-Generated Web Pages for New Jobs topic for more information on these webpages. See the Create a New Job with the Job Wizard topic for more information on using the Job Wizard.

- The In-Sight adapter supports the ability to create multiple standard Web Pages for a job, each containing their own set of HMI controls. However, only one standard Web Page may be displayed at a time. This means that when a new standard Web Page is opened, the previous Web Page will be closed. Additional Web Pages can be added as popup windows, either static or moveable, and multiple popup Web Pages can be added to a standard Web Page.

  For more information, see the Multiple WebPages and Web Page Types topics.

- When using multiple Web Pages, you can configure one of them to be the default (or startup) page of the job. This will be the WebPage that loads by default when the HMI is opened the first time. For more information, see the WebPage Properties and Configuring a Startup Web Page topic.
- Scripts associated with a Web Page are executed on the UI thread, and long running scripts could cause the UI to temporarily freeze.
- The Create a WebPage from Selected Cells option can be used to automatically generate a WebPage based on Spreadsheet cells and functions.