Home Cooker Classes Others Rice CookerGX
Classes  >  document
document class

Description

Represents the DOM document of the browser for the user interface.

Notes

It is a class that is statically included in the Cooker.

Please note that the instance obtained from the variable declaration has already been initialized.

fitter

SignatureDescription
document()

Get a new instance of document class.

getter

SignatureDescription
ActiveElement

Gets the element that has the focus when the document has focus.

Body

Gets the <body> element.

Fitted

Gets the value that indicates whether this instance was already initialized.

Head

Gets the <head> element.

TypeName

Gets the type name.

setter

This class does not have a setter.

method

SignatureDescription
CreateElement(string)

Creates an instance of the element for the specified tag.

ElementFromPoint(int,int)

Returns the element on the specified coordinates.

GetElementById(string)

Returns a element with the specified id attribute.

GetElementsByAttribute(string)

Returns a list of elements with the specified attributes.

GetElementsByAttribute(string,string)

Returns a list of elements with the specified attributes and values.

GetElementsByClassName(string)

Returns a list of elements with the specified class attribute.

GetElementsByName(string)

Returns a list of elements with the specified name attribute.

GetElementsByTagName(string)

Returns a list of elements with the specified element name.

InvokeJS(string)

Executes a javascript function that was loaded for the current document.

PushCss(string)

Add the style element that has the specified CSS code.

PushJS(string)

Add the script element that has the specified javascript code.

Copyright © Rice All rights reserved.