Contents
Index 🔎︎

# Insert Script

Inserts a script at the current cursor position in an HTML or text document.

To access this command...

Choose Insert - Script (only HTML documents)

An inserted script is indicated by a small green rectangle. If you do not see the rectangle, choose LibreOffice - Preferences Tools - Options - LibreOffice Writer/Web - View, and select the Comments check box. To edit a script, double-click the green rectangle.

If your document contains more than one script, the Edit Script dialog contains previous and next buttons to jump from script to script.

Jump to Previous Script

Jump to Next Script

## Contents

## Script Type

Enter the type of script that you want to insert. The script is identified in the HTML source code by the tag <SCRIPT LANGUAGE="JavaScript">.

## URL

Adds a link to a script file. Click the URL radio button, and then enter the link in the box. You can also click the Browse button, locate the file, and then click Insert. The linked script file is identified in the HTML source code by the following tags:

<SCRIPT LANGUAGE="JavaScript" SRC="url">

/* ignore all text here */

</SCRIPT>

## Browse

Locate the script file that you want to link to, and then click Insert.

## Text

Enter the script code that you want to insert.