GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Home
  • Releases
  • Documentation
  • Help & Support
  • Contributing
  • GitHub

This view

  • Original page
  • New address

GeezerVison is showing luakit.github.io — Luakit API Documentation

Table of Contents

Pages

  • Authors
  • Frequently Asked Questions
  • Quick-start Guide
  • Migration Guide
  • Files and Directories
  • Running the Test Suite
  • Building a Debian Package

Modules

  • adblock
  • adblock_chrome
  • binds
  • binds_chrome
  • bookmarks
  • bookmarks_chrome
  • chrome
  • clear_data
  • cmdhist
  • completion
  • domain_props
  • downloads
  • downloads_chrome
  • editor
  • error_page
  • follow
  • follow_selected
  • formfiller
  • go_input
  • go_next_prev
  • go_up
  • gopher
  • help_chrome
  • hide_scrollbars
  • history
  • history_chrome
  • image_css
  • introspector_chrome
  • ipc
  • keysym
  • log_chrome
  • lousy.bind
  • lousy.load
  • lousy.mode
  • lousy.pickle
  • lousy.signal
  • lousy.theme
  • lousy.uri
  • lousy.util
  • lousy.widget
  • lousy.widget.buf
  • lousy.widget.common
  • lousy.widget.hist
  • lousy.widget.menu
  • lousy.widget.progress
  • lousy.widget.scroll
  • lousy.widget.ssl
  • lousy.widget.tab
  • lousy.widget.tabi
  • lousy.widget.tablist
  • lousy.widget.tgname
  • lousy.widget.uri
  • lousy.widget.zoom
  • luakit
  • luakit.unique
  • modes
  • msg
  • newtab_chrome
  • noscript
  • open_editor
  • proxy
  • quickmarks
  • readline
  • referer_control_wm
  • search
  • select
  • select_wm
  • session
  • settings
  • settings_chrome
  • soup
  • styles
  • tab_favicons
  • tabgroups
  • tabhistory
  • tabmenu
  • taborder
  • tests.lib
  • undoclose
  • unique_instance
  • userscripts
  • utf8
  • vertical_tabs
  • view_source
  • viewpdf
  • webinspector
  • webview
  • window
  • xdg

Classes

  • dom_document
  • dom_element
  • download
  • page
  • regex
  • sqlite3
  • stylesheet
  • timer
  • widget
  • widget:box
  • widget:drawing_area
  • widget:entry
  • widget:event_box
  • widget:image
  • widget:label
  • widget:notebook
  • widget:overlay
  • widget:paned
  • widget:scrolled
  • widget:socket
  • widget:spinner
  • widget:webview
  • widget:window

Class dom_document

Web process Lua interface to the DOM
This module is only available from web process Lua states.

Retrieving the DOM document for a page:

To retrieve the DOM document loaded in a page, use the document property.

Methods

document:create_element (tag_name, attributes, inner_text)

Create a new element for the DOM document.

Parameters

  • tag_name
    Type: string
    The tag name of the element to create.
  • attributes
    Type: table
    Optional
    A table of attributes to set on the new element. All keys and values must be strings.
  • inner_text
    Type: string
    Optional
    The inner text to set on the element.

document:element_from_point (x, y)

Find the DOM element at the given point.

Parameters

  • x
    Type: integer
    The X coordinate of the point.
  • y
    Type: integer
    The Y coordinate of the point.

Return Values

  • dom_element
    The element at the given point.

Properties

document.body

Type: dom_element
Read-only
The body of the DOM document.

document.window.scroll_x

Type: integer
Read-only
The horizontal scroll position of the document view.

document.window.scroll_y

Type: integer
Read-only
The vertical scroll position of the document view.

document.window.inner_width

Type: integer
Read-only
The inner width of the DOM document.

document.window.inner_height

Type: integer
Read-only
The inner height of the DOM document.

Attribution

Copyright

  • 2017 Aidan Holm
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.