Email this Page Log Support Call Send Feedback Print

Previous Topic

Next Topic

Book Contents

Book Index

How Do I Add Javascript?

Answer

To include Javascript, you need to use a File Object which is linked to a text file containing the script code. You can use any web development tool to produce your script, as long as the file you link to is valid code in plain text format.

You will need to insert a File Object for each chunk of script in your page (of course, being Author-it, you can reuse the same File Object many times, even within the same page, especially if you code the Javascript generically enough). When your page is published, the script text is inserted into the page at the location where you placed the File Object.

When you insert text or HTML code as a File Object, Author-it does not interpret it when you publish - it just includes the text "as is" in the published page.

Make sure the File Object is set to only appear in your HTML output.

Top of Page Email this Page Log Support Call Send Feedback Print