View-state Object
Prev | Chapter 15. Scripting ELinks with ECMAScript |

## View-state Object

The view-state object mentioned in the description of elinks.preformat_html is a wrapper for the internal ELinks view_state object. The view state holds information on how the current document is being displayed.

### View-state Object Properties

vs.plain (boolean):: Whether the current document is rendered as HTML or displayed as plaintext. This can be read and set.

vs.uri (string):: This is the URI of the current document. It is read-only.

Prev | Up |
Cache Object | Home |