## Browsing versus Editing

Amaya is mainly an editor with browsing capabilities. When used as a browser, it behaves like many other Web browsers, except for activating links. In normal operation Amaya allows you to browse and edit documents simultaneously, but you can change this standard behavior for each document window independently. The button shows up that the window is in editor mode: you can edit the current document and browse in this window. By clicking on that button, you switch the window to browser mode. The button is then displayed as and you can only browse and fill in forms. This option is also available from the Edit menu option Editor Mode, and as a keyboard shortcut (in linux the default is Shift-Control-asterisk).

### Activating a link

Links are usually displayed in blue (or underlined on monochrome displays). As Amaya is an editor, you must double click on a link to activate it. A single click just moves the insertion point and displays the expanded URI of the link into the status bar of the main view. This behavior can be changed as well as many other parameters using a preferences menu. By changing the "Double click activates link", you can browse documents with a simple-click. In that case, you cannot easily put the insert point within anchors: you have to use the drag and/or arrows to move the insert point within an anchor. It is also possible to use the keyboard to activate links, as well as form controls. The default keyboard command is Alt-Return.

The document retrieved by this operation normally replaces the current document in the same window, in the same mode (editor or browser ). However, if the current document has been modified and has not been saved yet, another window is created for the new document, to avoid losing last changes.

### Target anchors

Some pieces of text can be displayed with a target icon . These icons are not part of the document and can be displayed or hidden just by controlling the Show targets status of the current window, which is an option in the Views menu.

These icons are associated to target elements, i.e. elements with an `ID` attribute, or target anchors, i.e. anchors with a `name` attribute. They identify possible targets for links. These icons are intended to make the creation of links easier. As you can quickly recognize the possible target of a link, you can create links faster.

### Opening documents

You can open local or remote documents in several different ways:

File menu
  Two entries from the File menu, Open Document and Open in New Window, allow you to open a new document in the same window or in a new window respectively. Both commands bring up a dialog box where you can enter either a local file name or an URI. You can also select a file from the Browse option that contains a file browser and helps you to locate local files.

  When the document is correctly specified, click on the Confirm button.

"Address" area
  This area displays the file name or the URI of the current document. You can edit it to specify a different (local or remote) document to be displayed in the same window. Press the Enter key when the cursor is in this area to actually load the document.
Following links
  Activating a link to get the corresponding document.

### New documents

Amaya allows you to create new local or distant documents. Three types of document are available : XHTML, MathML or SVG.

To create a document, choose the New option in the File menu and select the appropriate type. Then, specify the URI or the local name of the new document (a default name is assigned to the document if no name is specified). After confirmation, Amaya opens a new window with the specified document. If this document already exists, Amaya loads its current version otherwise. a new document with the correponding root element is created.

### Moving backward and forward

There are several ways to move backward or forward through the history list:

File menu
  There are entries in the file menu for Forward and Backward.
Keyboard Shortcut
  The default keyboard shortcuts are Alt-f and Alt-b in linux, and Alt-left-arrow and Alt-right-arrow in windows
Button bar
  Two buttons: and allow you to go back to the previous page or forward to the next one.

### Reloading a page

Documents can be reloaded using the Reload option in the File menu, the shortcut key (default is Alt-R) or the button on the button bar.

### Keyboard control

Amaya provides keyboard control for many functions. Default keyboard commands are provided at appropriate places in the documentation.. The help section on Configuring Amaya describes how to change the defaults, and the current key bindings are provided next to the relevant menu option in all menus.