Adding custom HTML to your site

Freeway provides several options for adding specific custom HTML to your site. All these methods allow you to add HTML code via the Freeway user interface, and you do not need to edit the HTML directly. The HTML you have added is stored as part of your site, and is automatically integrated with the HTML generated by Freeway each time you publish or preview your site.

Freeway provides the following methods for adding HTML code to your site:

These options are described in greater detail in the following sections.

Note: Take care when adding your own HTML to a site. Errors can go unnoticed but may interfere with the correct appearance or operation of the site.

To add HTML code to a page

You can enter a separate snippet of code for each of the options on the Insert menu.

Options for which you have defined code are shown underlined in the menu:

For example, to add JavaScript code to the page you will typically add it to the section Before </HEAD>. This ensures that it is processed before the body or page content is loaded.

To extend the code generated for specific objects

Freeway provides an Extended command at several places in the user interface to allow you to add additional parameters to the HTML tag associated with the object you have selected on the page.

The following table lists the different contexts in which you can use the Extended command:

Context What it affects
Page menu The <body> tag on the current page.
Hyperlink dialog box The <a> tag.
Item menu for a graphic item The <img> tag.
Item menu for a multimedia item The <embed> tag.
Item menu for a table The <table> tag.

The following dialog box allows you to define name/value pairs to be added to the appropriate HTML tag:

The above example adds a parameter to the <body> tag:

<body OnLoad="alert(Please register)">

When the page is loaded into a browser this will cause a JavaScript alert to be displayed:


Contents