Libraries.Web.Page.EventAttributeAccepter Documentation

The EventAttributeAccepter is a helper class which is a subclass of all accepters classes. This includesAttributeAccepter, MouseAttributeAccepter, WindowAttributeAccepter, FormAttributeAccepter,MediaAttributeAccepter, and KeyboardAttributeAccepter.

Inherits from: Libraries.Web.Page.AttributeAccepter, Libraries.Web.Page.KeyboardAttributeAccepter, Libraries.Web.Page.FormAttributeAccepter, Libraries.Web.Page.WindowAttributeAccepter, Libraries.Web.Page.MediaAttributeAccepter, Libraries.Language.Object, Libraries.Web.Page.MouseAttributeAccepter

Summary

Actions Summary Table

ActionsDescription
Add(Libraries.Web.Page.Attribute attribute)This action adds an attribute to this object.
AddAttribute(text name, text value)This action adds an attribute to this object.
Compare(Libraries.Language.Object object)This action compares two object hash codes and returns an integer.
Equals(Libraries.Language.Object object)This action determines if two objects are equal based on their hash code values.
GenerateAttributes()This action returns a text description of all attributes stored.
GetAttribute(text name)This action returns an attribute from this object's Attributes object.
GetAttributeValue(text name)This action returns an attribute from this object's Attributes object.
GetAttributes()Returns a list of all attributes on the system.
GetHashCode()This action gets the hash code for an object.
GetIterator()This action returns an iterator of all attributes stored in this object.
GetNumberOfAttributes()This action returns the number of attributes that are currently stored in this object.
GetOnAHasChange()Returns the OnAHasChange attribute.
GetOnAbort()Returns the OnAbort attribute.
GetOnAfterPrint()Returns the OnAfterPrint attribute.
GetOnBeforePrint()Returns the OnBeforePrint attribute.
GetOnBlur()Returns the onblur attribute.
GetOnCanPlay()Returns the OnCanPlay attribute.
GetOnCanPlayThrough()Returns the OnCanPlayThrough attribute.
GetOnChange()Returns the OnChange attribute.
GetOnClick()Returns the OnClick attribute.
GetOnContextMenu()Returns the OnContextMenu attribute.
GetOnDoubleClick()Returns the OnDoubleClick attribute.
GetOnDrag()Returns the OnDrag attribute.
GetOnDragEnd()Returns the OnDragEnd attribute.
GetOnDragEnter()Returns the OnDragEnter attribute.
GetOnDragLeave()Returns the OnDragLeave attribute.
GetOnDragOver()Returns the OnDragOver attribute.
GetOnDragStart()Returns the OnDragStart attribute.
GetOnDrop()Returns the OnDrop attribute.
GetOnDurationChange()Returns the OnDurationChange attribute.
GetOnEmptied()Returns the OnEmptied attribute.
GetOnEnded()Returns the OnEnded attribute.
GetOnError()Returns the OnError attribute.
GetOnFocus()Returns the OnFocus attribute.
GetOnFormChange()Returns the OnFormChange attribute.
GetOnFormInput()Returns the OnFormInput attribute.
GetOnInput()Returns the OnInput attribute.
GetOnInvalid()Returns the OnInvalid attribute.
GetOnKeyDown()Returns the OnKeyDown attribute.
GetOnKeyPress()Returns the OnKeyPress attribute.
GetOnKeyUp()Returns the OnKeyUp attribute.
GetOnLoad()Returns the OnLoad attribute.
GetOnLoadStart()Returns the OnLoadStart attribute.
GetOnLoadedData()Returns the OnLoadedData attribute.
GetOnLoadedMetaData()Returns the OnLoadedMetaData attribute.
GetOnMediaError()Returns the OnMediaError attribute.
GetOnMessage()Returns the OnMessage attribute.
GetOnMouseDown()Returns the OnMouseDown attribute.
GetOnMouseMove()Returns the OnMouseMove attribute.
GetOnMouseOut()Returns the OnMouseOut attribute.
GetOnMouseOver()Returns the OnMouseOver attribute.
GetOnMouseUp()Returns the OnMouseUp attribute.
GetOnMouseWheel()Returns the OnMouseWheel attribute.
GetOnOffline()Returns the OnOffline attribute.
GetOnOnline()Returns the OnOnline attribute.
GetOnPageHide()Returns the OnPageHide attribute.
GetOnPageShow()Returns the OnPageShow attribute.
GetOnPause()Returns the OnPause attribute.
GetOnPlay()Returns the OnPlay attribute.
GetOnPlaying()Returns the OnPlaying attribute.
GetOnPopState()Returns the OnPopState attribute.
GetOnProgress()Returns the OnProgress attribute.
GetOnRateChange()Returns the OnRateChange attribute.
GetOnReadyStateChange()Returns the OnReadyStateChange attribute.
GetOnRedo()Returns the OnRedo attribute.
GetOnResize()Returns the OnResize attribute.
GetOnScroll()Returns the OnScroll attribute.
GetOnSeeked()Returns the OnSeeked attribute.
GetOnSeeking()Returns the OnSeeking attribute.
GetOnSelect()Returns the OnSelect attribute.
GetOnStalled()Returns the OnStalled attribute.
GetOnStorage()Returns the OnStorage attribute.
GetOnSubmit()Returns the OnSubmit attribute.
GetOnSuspend()Returns the OnSuspend attribute.
GetOnTimeUpdate()Returns the OnTimeUpdate attribute.
GetOnUndo()Returns the OnUndo attribute.
GetOnUnload()Returns the OnUnload attribute.
GetOnVolumeChange()Returns the OnVolumeChange attribute.
GetOnWaiting()Returns the OnWaiting attribute.
HasAttribute(text name)This action returns whether or not an attribute exists for the key passed in as a parameter.
RemoveAttribute(text name)This action removes an attribute with a particular key.
SetOnAbort(text value)Sets the OnAbort attribute script when the OnAbort event is triggered.
SetOnAfterPrint(text value)Sets the OnAfterPrint attribute script when the OnAfterPrint event is triggered.
SetOnBeforePrint(text value)Sets the OnBeforePrint attribute script when the OnBeforePrint event is triggered.
SetOnBeforeUnload(text value)Sets the OnBeforeUnload attribute script when the OnBeforeUnload event is triggered.
SetOnBlur(text value)Sets the onblur attribute.
SetOnCanPlay(text value)Sets the OnCanPlay attribute script when the OnCanPlay event is triggered.
SetOnCanPlayThrough(text value)Sets the OnCanPlayThrough attribute script when the OnCanPlayThrough event is triggered.
SetOnChange(text value)Sets the OnChange attribute.
SetOnClick(text value)Sets the OnClick attribute script when the OnClick event is triggered.
SetOnContextMenu(text value)Sets the OnContextMenu attribute.
SetOnDoubleClick(text value)Sets the OnDoubleClick attribute script when the OnDoubleClick event is triggered.
SetOnDrag(text value)Sets the OnDrag attribute script when the OnDrag event is triggered.
SetOnDragEnd(text value)Sets the OnDragEnd attribute script when the OnDragEnd event is triggered.
SetOnDragEnter(text value)Sets the OnDragEnter attribute script when the OnDragEnter event is triggered.
SetOnDragLeave(text value)Sets the OnDragLeave attribute script when the OnDragLeave event is triggered.
SetOnDragOver(text value)Sets the OnDragOver attribute script when the OnDragOver event is triggered.
SetOnDragStart(text value)Sets the OnDragStart attribute script when the OnDragStart event is triggered.
SetOnDrop(text value)Sets the OnDrop attribute script when the OnDrop event is triggered.
SetOnDurationChange(text value)Sets the OnDurationChange attribute script when the OnDurationChange event is triggered.
SetOnEmptied(text value)Sets the OnEmptied attribute script when the OnEmptied event is triggered.
SetOnEnded(text value)Sets the OnEnded attribute script when the OnEnded event is triggered.
SetOnError(text value)Sets the OnError attribute script when the OnError event is triggered.
SetOnFocus(text value)Sets the OnFocus attribute.
SetOnFormChange(text value)Sets the OnFormChange attribute.
SetOnFormInput(text value)Sets the OnFormInput attribute.
SetOnHasChange(text value)Sets the OnHasChange attribute script when the OnHasChange event is triggered.
SetOnInput(text value)Sets the OnInput attribute.
SetOnInvalid(text value)Sets the OnInvalid attribute.
SetOnKeyDown(text value)Sets the OnKeyDown attribute.
SetOnKeyPress(text value)Sets the OnKeyPress attribute.
SetOnKeyUp(text value)Sets the OnKeyUp attribute.
SetOnLoad(text value)Sets the OnLoad attribute script when the OnLoad event is triggered.
SetOnLoadStart(text value)Sets the OnLoadStart attribute script when the OnLoadStart event is triggered.
SetOnLoadedData(text value)Sets the OnLoadedData attribute script when the OnLoadedData event is triggered.
SetOnLoadedMetaData(text value)Sets the OnLoadedMetaData attribute script when the OnLoadedMetaData event is triggered.
SetOnMediaError(text value)Sets the OnMediaError attribute script when the OnMediaError event is triggered.
SetOnMessage(text value)Sets the OnMessage attribute script when the OnMessage event is triggered.
SetOnMouseDown(text value)Sets the OnMouseDown attribute script when the OnMouseDown event is triggered.
SetOnMouseMove(text value)Sets the OnMouseMove attribute script when the OnMouseMove event is triggered.
SetOnMouseOut(text value)Sets the OnMouseOut attribute script when the OnMouseOut event is triggered.
SetOnMouseOver(text value)Sets the OnMouseOver attribute script when the OnMouseOver event is triggered.
SetOnMouseUp(text value)Sets the OnMouseUp attribute script when the OnMouseUp event is triggered.
SetOnMouseWheel(text value)Sets the OnMouseWheel attribute script when the OnMouseWheel event is triggered.
SetOnOffline(text value)Sets the OnOffline attribute script when the OnOffline event is triggered.
SetOnOnline(text value)Sets the OnOnline attribute script when the OnOnline event is triggered.
SetOnPageHide(text value)Sets the OnPageHide attribute script when the OnPageHide event is triggered.
SetOnPageShow(text value)Sets the OnPageShow attribute script when the OnPageShow event is triggered.
SetOnPause(text value)Sets the OnPause attribute script when the OnPause event is triggered.
SetOnPlay(text value)Sets the OnPlay attribute script when the OnPlay event is triggered.
SetOnPlaying(text value)Sets the OnPlaying attribute script when the OnPlaying event is triggered.
SetOnPopState(text value)Sets the OnPopState attribute script when the OnPopState event is triggered.
SetOnProgress(text value)Sets the OnProgress attribute script when the OnProgress event is triggered.
SetOnRateChange(text value)Sets the OnRateChange attribute script when the OnRateChange event is triggered.
SetOnReadyStateChange(text value)Sets the OnReadyStateChange attribute script when the OnReadyStateChange event is triggered.
SetOnRedo(text value)Sets the OnRedo attribute script when the OnRedo event is triggered.
SetOnResize(text value)Sets the OnResize attribute script when the OnResize event is triggered.
SetOnScroll(text value)Sets the OnScroll attribute script when the OnScroll event is triggered.
SetOnSeeked(text value)Sets the OnSeeked attribute script when the OnSeeked event is triggered.
SetOnSeeking(text value)Sets the OnSeeking attribute script when the OnSeeking event is triggered.
SetOnSelect(text value)Sets the OnSelect attribute.
SetOnStalled(text value)Sets the OnStalled attribute script when the OnStalled event is triggered.
SetOnStorage(text value)Sets the OnStorage attribute script when the OnStorage event is triggered.
SetOnSubmit(text value)Sets the OnSubmit attribute.
SetOnSuspend(text value)Sets the OnSuspend attribute script when the OnSuspend event is triggered.
SetOnTimeUpdate(text value)Sets the OnTimeUpdate attribute script when the OnTimeUpdate event is triggered.
SetOnUndo(text value)Sets the OnUndo attribute script when the OnUndo event is triggered.
SetOnUnload(text value)Sets the OnUnload attribute script when the OnUnload event is triggered.
SetOnVolumeChange(text value)Sets the OnVolumeChange attribute script when the OnVolumeChange event is triggered.
SetOnWaiting(text value)Sets the OnWaiting attribute script when the OnWaiting event is triggered.

Actions Documentation

Add(Libraries.Web.Page.Attribute attribute)

This action adds an attribute to this object. If an attribute with the same name as

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        Attribute attribute
        attribute:SetName("src")
        attribute:SetValue("http://www.google.com")

        AttributeAccepter accept
        accept:Add(attribute)

Parameters

AddAttribute(text name, text value)

This action adds an attribute to this object. This action is a helper action, which essentially does the same thing as the Add(Attribute) action. If an attribute with the same name as

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        AttributeAccepter accept
        accept:AddAttribute("src", "http://www.google.com")

Parameters

Compare(Libraries.Language.Object object)

This action compares two object hash codes and returns an integer. The result is larger if this hash code is larger than the object passed as a parameter, smaller, or equal. In this case, -1 means smaller, 0 means equal, and 1 means larger. This action was changed in Quorum 7 to return an integer, instead of a CompareResult object, because the previous implementation was causing efficiency issues.

Example Code

Object o
        Object t
        integer result = o:Compare(t) //1 (larger), 0 (equal), or -1 (smaller)

Parameters

Return

integer: The Compare result, Smaller, Equal, or Larger.

Equals(Libraries.Language.Object object)

This action determines if two objects are equal based on their hash code values.

Example Code

use Libraries.Language.Object
        use Libraries.Language.Types.Text
        Object o
        Text t
        boolean result = o:Equals(t)

Parameters

Return

boolean: True if the hash codes are equal and false if they are not equal.

GenerateAttributes()

This action returns a text description of all attributes stored.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        AttributeAccepter accept
        accept:AddAttribute("src", "http://www.google.com")
        text result = accept:GenerateAttributes()

Return

text:

GetAttribute(text name)

This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        AttributeAccepter accept
        //as we have not set any attribute, this would
        //return undefined
        Attribute attribute = accept:GetAttribute("src")

Parameters

Return

Libraries.Web.Page.Attribute:

GetAttributeValue(text name)

This action returns an attribute from this object's Attributes object. If no attribute exists for a given key, this action returns undefined.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        AttributeAccepter accept
        accept:AddAttribute("src", "http://www.google.com")
        //This helper action would throw an error if "src" were not set.
        text value = accept:GetAttributeValue("src")

Parameters

Return

text:

GetAttributes()

Returns a list of all attributes on the system.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attributes

        AttributeAccepter accept
        Attributes attributes = accept:GetAttributes()

Return

Libraries.Web.Page.Attributes: The attributes class contains all of the attributes that have been set for this object.

GetHashCode()

This action gets the hash code for an object.

Example Code

Object o
        integer hash = o:GetHashCode()

Return

integer: The integer hash code of the object.

GetIterator()

This action returns an iterator of all attributes stored in this object.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute
        use Libraries.Containers.Iterator

        AttributeAccepter accept
        accept:AddAttribute("src", "http://www.google.com")

        //output out all of the attributes
        Iterator<Attribute> it =  accept:GetIterator()
        repeat while it:HasNext()
            Attribute at = it:Next()
            output at:Generate()
        end

Return

Libraries.Containers.Iterator:

GetNumberOfAttributes()

This action returns the number of attributes that are currently stored in this object.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        AttributeAccepter accept
        accept:AddAttribute("src", "http://www.google.com")
        integer num = accept:GetNumberOfAttributes()

Return

integer:

GetOnAHasChange()

Returns the OnAHasChange attribute. If a window change event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnAHasChange()

Return

Libraries.Web.Page.Attribute: The current OnAHasChange attribute.

GetOnAbort()

Returns the OnAbort attribute. If a on abort event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnAbort()

Return

Libraries.Web.Page.Attribute: The current OnAbort attribute.

GetOnAfterPrint()

Returns the OnAfterPrint attribute. After a output event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnAfterPrint()

Return

Libraries.Web.Page.Attribute: The current OnAfterPrint attribute.

GetOnBeforePrint()

Returns the OnBeforePrint attribute. Before a output event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnBeforePrint()

Return

Libraries.Web.Page.Attribute: The current OnBeforePrint attribute.

GetOnBlur()

Returns the onblur attribute. If the onblur attribute is enabled the form element has lost focus.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnBlur()

Return

Libraries.Web.Page.Attribute: The current onblur attribute.

GetOnCanPlay()

Returns the OnCanPlay attribute. If a can play event (a file has buffered enough to play) occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnCanPlay()

Return

Libraries.Web.Page.Attribute: The current OnCanPlay attribute.

GetOnCanPlayThrough()

Returns the OnCanPlayThrough attribute. If a play all the way through (the file can play without pausing for buffering) event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnCanPlayThrough()

Return

Libraries.Web.Page.Attribute: The current OnCanPlayThrough attribute.

GetOnChange()

Returns the OnChange attribute. If the OnChange event occurs when a form elements state, text, or selection is changed.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnChange()

Return

Libraries.Web.Page.Attribute: The current OnChange event attribute.

GetOnClick()

Returns the OnClick attribute. If a on click event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnClick()

Return

Libraries.Web.Page.Attribute: The current OnClick attribute.

GetOnContextMenu()

Returns the OnContextMenu attribute. If the OnContextMenu specifies the script to run when a context menu is triggered.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnContextMenu()

Return

Libraries.Web.Page.Attribute: The current OnContextMenu attribute.

GetOnDoubleClick()

Returns the OnDoubleClick attribute. If a on double click event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDoubleClick()

Return

Libraries.Web.Page.Attribute: The current OnDoubleClick attribute.

GetOnDrag()

Returns the OnDrag attribute. If a on drag event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDrag()

Return

Libraries.Web.Page.Attribute: The current OnDrag attribute.

GetOnDragEnd()

Returns the OnDragEnd attribute. If a on drag end event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDragEnd()

Return

Libraries.Web.Page.Attribute: The current OnDragEnd attribute.

GetOnDragEnter()

Returns the OnDragEnter attribute. If a on drag into area event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDragEnter()

Return

Libraries.Web.Page.Attribute: The current OnDragEnter attribute.

GetOnDragLeave()

Returns the OnDragLeave attribute. If a on drag out of area event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDragLeave()

Return

Libraries.Web.Page.Attribute: The current OnDragLeave attribute.

GetOnDragOver()

Returns the OnDragOver attribute. If a on drag over event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDragOver()

Return

Libraries.Web.Page.Attribute: The current OnDragOver attribute.

GetOnDragStart()

Returns the OnDragStart attribute. If a on drag start event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDragStart()

Return

Libraries.Web.Page.Attribute: The current OnDragStart attribute.

GetOnDrop()

Returns the OnDrop attribute. If a on drop item event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnDrop()

Return

Libraries.Web.Page.Attribute: The current OnDrop attribute.

GetOnDurationChange()

Returns the OnDurationChange attribute. If the durration of a a media file changes, this event will occur on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnDurationChange()

Return

Libraries.Web.Page.Attribute: The current OnDurationChange attribute.

GetOnEmptied()

Returns the OnEmptied attribute. If the file becomes unavailable this event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnEmptied()

Return

Libraries.Web.Page.Attribute: The current OnEmptied attribute.

GetOnEnded()

Returns the OnEnded attribute. If the media file reaches the end event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnEnded()

Return

Libraries.Web.Page.Attribute: The current OnEnded attribute.

GetOnError()

Returns the OnError attribute. When an error event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnError()

Return

Libraries.Web.Page.Attribute: The current OnError attribute.

GetOnFocus()

Returns the OnFocus attribute. If the OnFocus event occurs when a form element gains focus.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnFocus()

Return

Libraries.Web.Page.Attribute: The current OnFocus event attribute.

GetOnFormChange()

Returns the OnFormChange attribute. If the OnFormChange stores the script to be run when a form change occurs.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnFormChange()

Return

Libraries.Web.Page.Attribute: The current OnFormChange script attribute.

GetOnFormInput()

Returns the OnFormInput attribute. If the OnFormInput is triggered, by a form recieving input, the specified script will be run.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnFormInput()

Return

Libraries.Web.Page.Attribute: The current OnFormInput event attribute.

GetOnInput()

Returns the OnInput attribute. If the OnInput is triggered, by a form element recieving input, the specified script will be run.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnInput()

Return

Libraries.Web.Page.Attribute: The current OnInput event attribute.

GetOnInvalid()

Returns the OnInvalid attribute. If the OnInvalid is triggered, by a form element recieving invalid input, the specified script will be run.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnInvalid()

Return

Libraries.Web.Page.Attribute: The current OnInvalid event attribute.

GetOnKeyDown()

Returns the OnKeyDown attribute. If a key down event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.KeyboardAttributeAccepter
        use Libraries.Web.Page.Attribute

        KeyboardAttributeAccepter accept
        Attribute attribute = accept:GetOnKeyDown()

Return

Libraries.Web.Page.Attribute: The current OnKeyDown attribute.

GetOnKeyPress()

Returns the OnKeyPress attribute. If a key press event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.KeyboardAttributeAccepter
        use Libraries.Web.Page.Attribute

        KeyboardAttributeAccepter accept
        Attribute attribute = accept:GetOnKeyPress()

Return

Libraries.Web.Page.Attribute: The current OnKeyPress attribute.

GetOnKeyUp()

Returns the OnKeyUp attribute. If a key up event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.KeyboardAttributeAccepter
        use Libraries.Web.Page.Attribute

        KeyboardAttributeAccepter accept
        Attribute attribute = accept:GetOnKeyUp()

Return

Libraries.Web.Page.Attribute: The current OnKeyUp attribute.

GetOnLoad()

Returns the OnLoad attribute. If a load event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnLoad()

Return

Libraries.Web.Page.Attribute: The current OnLoad attribute.

GetOnLoadStart()

Returns the OnLoadStart attribute. If a load event is about to start on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnLoadStart()

Return

Libraries.Web.Page.Attribute: The current OnLoadStart attribute.

GetOnLoadedData()

Returns the OnLoadedData attribute. If a media loaded event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnLoadedData()

Return

Libraries.Web.Page.Attribute: The current OnLoadedData attribute.

GetOnLoadedMetaData()

Returns the OnLoadedMetaData attribute. If the meta data is loaded event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnLoadedMetaData()

Return

Libraries.Web.Page.Attribute: The current OnLoadedMetaData attribute.

GetOnMediaError()

Returns the OnMediaError attribute. If a load error event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnMediaError()

Return

Libraries.Web.Page.Attribute: The current OnMediaError attribute.

GetOnMessage()

Returns the OnMessage attribute. If a message event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnMessage()

Return

Libraries.Web.Page.Attribute: The current OnMessage attribute.

GetOnMouseDown()

Returns the OnMouseDown attribute. If a on mouse button down event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnMouseDown()

Return

Libraries.Web.Page.Attribute: The current OnMouseDown attribute.

GetOnMouseMove()

Returns the OnMouseMove attribute. If a on mouse move event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnMouseMove()

Return

Libraries.Web.Page.Attribute: The current OnMouseMove attribute.

GetOnMouseOut()

Returns the OnMouseOut attribute. If a on mouse out of area event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnMouseOut()

Return

Libraries.Web.Page.Attribute: The current OnMouseOut attribute.

GetOnMouseOver()

Returns the OnMouseOver attribute. If a on mouse over event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnMouseOver()

Return

Libraries.Web.Page.Attribute: The current OnMouseOver attribute.

GetOnMouseUp()

Returns the OnMouseUp attribute. If a on mouse button up event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnMouseUp()

Return

Libraries.Web.Page.Attribute: The current OnMouseUp attribute.

GetOnMouseWheel()

Returns the OnMouseWheel attribute. If a mouse wheel scroll event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnMouseWheel()

Return

Libraries.Web.Page.Attribute: The current OnMouseWheel attribute.

GetOnOffline()

Returns the OnOffline attribute. If a window offline event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnOffline()

Return

Libraries.Web.Page.Attribute: The current OnOffline attribute.

GetOnOnline()

Returns the OnOnline attribute. If an online event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnOnline()

Return

Libraries.Web.Page.Attribute: The current OnOnline attribute.

GetOnPageHide()

Returns the OnPageHide attribute. When a page is hidden event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnPageHide()

Return

Libraries.Web.Page.Attribute: The current OnPageHide attribute.

GetOnPageShow()

Returns the OnPageShow attribute. When a page show event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnPageShow()

Return

Libraries.Web.Page.Attribute: The current OnPageShow attribute.

GetOnPause()

Returns the OnPause attribute. If a pause event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnPause()

Return

Libraries.Web.Page.Attribute: The current OnPause attribute.

GetOnPlay()

Returns the OnPlay attribute. If a play event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnPlay()

Return

Libraries.Web.Page.Attribute: The current OnPlay attribute.

GetOnPlaying()

Returns the OnPlaying attribute. If a play event is currently firing on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnPlaying()

Return

Libraries.Web.Page.Attribute: The current OnPlaying attribute.

GetOnPopState()

Returns the OnPopState attribute. When a windows history change event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnPopState()

Return

Libraries.Web.Page.Attribute: The current OnPopState attribute.

GetOnProgress()

Returns the OnProgress attribute. If a on progress event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnProgress()

Return

Libraries.Web.Page.Attribute: The current OnProgress attribute.

GetOnRateChange()

Returns the OnRateChange attribute. If a on play rate change event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnRateChange()

Return

Libraries.Web.Page.Attribute: The current OnRateChange attribute.

GetOnReadyStateChange()

Returns the OnReadyStateChange attribute. If the ready state event changes on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnReadyStateChange()

Return

Libraries.Web.Page.Attribute: The current OnReadyStateChange attribute.

GetOnRedo()

Returns the OnRedo attribute. When a page redo event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnRedo()

Return

Libraries.Web.Page.Attribute: The current OnRedo attribute.

GetOnResize()

Returns the OnResize attribute. After a window resize event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnResize()

Return

Libraries.Web.Page.Attribute: The current OnResize attribute.

GetOnScroll()

Returns the OnScroll attribute. If a on scroll event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        Attribute attribute = accept:GetOnScroll()

Return

Libraries.Web.Page.Attribute: The current OnScroll attribute.

GetOnSeeked()

Returns the OnSeeked attribute. If a seek event has occured on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnSeeked()

Return

Libraries.Web.Page.Attribute: The current OnSeeked attribute.

GetOnSeeking()

Returns the OnSeeking attribute. If a seek event is currently occuring on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnSeeking()

Return

Libraries.Web.Page.Attribute: The current OnSeeking attribute.

GetOnSelect()

Returns the OnSelect attribute. OnSelect is triggered by the selection of an elements text on the form.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnSelect()

Return

Libraries.Web.Page.Attribute: The current OnSelect event attribute.

GetOnStalled()

Returns the OnStalled attribute. If a stall event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnStalled()

Return

Libraries.Web.Page.Attribute: The current OnAbort OnStalled.

GetOnStorage()

Returns the OnStorage attribute. If a window storage area is updated on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnStorage()

Return

Libraries.Web.Page.Attribute: The current OnStorage attribute.

GetOnSubmit()

Returns the OnSubmit attribute. The OnSubmit is triggered by a submit action on the form.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        Attribute attribute = accept:GetOnSubmit()

Return

Libraries.Web.Page.Attribute: The current OnSubmit event attribute.

GetOnSuspend()

Returns the OnSuspend attribute. If a on suspend event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnSuspend()

Return

Libraries.Web.Page.Attribute: The current OnSuspend attribute.

GetOnTimeUpdate()

Returns the OnTimeUpdate attribute. If the playing position changes on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnTimeUpdate()

Return

Libraries.Web.Page.Attribute: The current OnTimeUpdate attribute.

GetOnUndo()

Returns the OnUndo attribute. If a window undo event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnUndo()

Return

Libraries.Web.Page.Attribute: The current OnUndo attribute.

GetOnUnload()

Returns the OnUnload attribute. After a browser window close event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        Attribute attribute = accept:GetOnUnload()

Return

Libraries.Web.Page.Attribute: The current OnUnload attribute.

GetOnVolumeChange()

Returns the OnVolumeChange attribute. If a volume change event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnVolumeChange()

Return

Libraries.Web.Page.Attribute: The current OnVolumeChange attribute.

GetOnWaiting()

Returns the OnWaiting attribute. If a pause event occurs and it is expected to continue on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        Attribute attribute = accept:GetOnWaiting()

Return

Libraries.Web.Page.Attribute: The current OnWaiting attribute.

HasAttribute(text name)

This action returns whether or not an attribute exists for the key passed in as a parameter.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        AttributeAccepter accept
        accept:AddAttribute("src", "http://www.google.com")
        //This helper action would throw an error if "src" were not set.
        boolean exists = accept:HasAttribute("src")

Parameters

Return

boolean:

RemoveAttribute(text name)

This action removes an attribute with a particular key. If that attribute does not exist, then this action returns undefined.

Example Code

use Libraries.Web.Page.AttributeAccepter
        use Libraries.Web.Page.Attribute

        AttributeAccepter accept
        accept:AddAttribute("src", "http://www.google.com")
        //This helper action would throw an error if "src" were not set.
        accept:RemoveAttribute("src")

Parameters

Return

Libraries.Web.Page.Attribute:

SetOnAbort(text value)

Sets the OnAbort attribute script when the OnAbort event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnAbort("doSomething()")

Parameters

SetOnAfterPrint(text value)

Sets the OnAfterPrint attribute script when the OnAfterPrint event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnAfterPrint("doSomething()")

Parameters

SetOnBeforePrint(text value)

Sets the OnBeforePrint attribute script when the OnBeforePrint event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnBeforePrint("doSomething()")

Parameters

SetOnBeforeUnload(text value)

Sets the OnBeforeUnload attribute script when the OnBeforeUnload event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnBeforeUnload("doSomething()")

Parameters

SetOnBlur(text value)

Sets the onblur attribute. The onblur attribute is the script to be triggered when the onblur even occurs. OnBlur is fired the moment an element loses focus.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnBlur("upperCase()")

Parameters

SetOnCanPlay(text value)

Sets the OnCanPlay attribute script when the OnCanPlay event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnCanPlay("doSomething()")

Parameters

SetOnCanPlayThrough(text value)

Sets the OnCanPlayThrough attribute script when the OnCanPlayThrough event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnCanPlayThrough("doSomething()")

Parameters

SetOnChange(text value)

Sets the OnChange attribute. The OnChange attribute is the script to be triggered when the OnChange event occurs. OnChange is fired the moment an element content is changed on a form.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnChange("upperCase()")

Parameters

SetOnClick(text value)

Sets the OnClick attribute script when the OnClick event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnClick("doSomething()")

Parameters

SetOnContextMenu(text value)

Sets the OnContextMenu attribute. The OnContextMenu attribute is the script to be triggered when the OnContextMenu event occurs. OnContextMenu is fired when a context menu is selected.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnContextMenu("upperCase()")

Parameters

SetOnDoubleClick(text value)

Sets the OnDoubleClick attribute script when the OnDoubleClick event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDoubleClick("doSomething()")

Parameters

SetOnDrag(text value)

Sets the OnDrag attribute script when the OnDrag event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDrag("doSomething()")

Parameters

SetOnDragEnd(text value)

Sets the OnDragEnd attribute script when the OnDragEnd event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDragEnd("doSomething()")

Parameters

SetOnDragEnter(text value)

Sets the OnDragEnter attribute script when the OnDragEnter event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDragEnter("doSomething()")

Parameters

SetOnDragLeave(text value)

Sets the OnDragLeave attribute script when the OnDragLeave event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDragLeave("doSomething()")

Parameters

SetOnDragOver(text value)

Sets the OnDragOver attribute script when the OnDragOver event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDragOver("doSomething()")

Parameters

SetOnDragStart(text value)

Sets the OnDragStart attribute script when the OnDragStart event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDragStart("doSomething()")

Parameters

SetOnDrop(text value)

Sets the OnDrop attribute script when the OnDrop event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnDrop("doSomething()")

Parameters

SetOnDurationChange(text value)

Sets the OnDurationChange attribute script when the OnDurationChange event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnDurationChange("doSomething()")

Parameters

SetOnEmptied(text value)

Sets the OnEmptied attribute script when the OnEmptied event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnEmptied("doSomething()")

Parameters

SetOnEnded(text value)

Sets the OnEnded attribute script when the OnEnded event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnEnded("doSomething()")

Parameters

SetOnError(text value)

Sets the OnError attribute script when the OnError event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnError("doSomething()")

Parameters

SetOnFocus(text value)

Sets the OnFocus attribute. The OnFocus attribute is the script to be triggered when the OnFocus event occurs. OnFocus is fired the moment an element gains focus.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnFocus("upperCase()")

Parameters

SetOnFormChange(text value)

Sets the OnFormChange attribute. The OnFormChange attribute is the script to be triggered when the OnFormChange event occurs. OnFormChange is fired the moment the form is changed.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnFormChange("upperCase()")

Parameters

SetOnFormInput(text value)

Sets the OnFormInput attribute. The OnFormInput attribute is the script to be triggered when the OnFormInput event occurs. OnFormInput is fired the moment the form is given input.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnFormInput("upperCase()")

Parameters

SetOnHasChange(text value)

Sets the OnHasChange attribute script when the OnHasChange event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnHasChange("doSomething()")

Parameters

SetOnInput(text value)

Sets the OnInput attribute. The OnInput attribute is the script to be triggered when the OnInput event occurs. OnInput is fired the moment a form element is given input.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnInput("upperCase()")

Parameters

SetOnInvalid(text value)

Sets the OnInvalid attribute. The OnInvalid attribute is the script to be triggered when the OnInvalid event occurs. OnInvalid is fired the moment a form element is invalid.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnInvalid("upperCase()")

Parameters

SetOnKeyDown(text value)

Sets the OnKeyDown attribute. If a key down event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.KeyboardAttributeAccepter
        use Libraries.Web.Page.Attribute

        KeyboardAttributeAccepter accept
        accept:SetOnKeyDown("doSomething()")

Parameters

SetOnKeyPress(text value)

Sets the OnKeyPress attribute. If a key press event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.KeyboardAttributeAccepter
        use Libraries.Web.Page.Attribute

        KeyboardAttributeAccepter accept
        accept:SetOnKeyPress("doSomething()")

Parameters

SetOnKeyUp(text value)

Sets the OnKeyUp attribute. If a key up event occurs on a specified element a script is fired based on this attribute.

Example Code

use Libraries.Web.Page.KeyboardAttributeAccepter
        use Libraries.Web.Page.Attribute

        KeyboardAttributeAccepter accept
        accept:SetOnKeyUp("doSomething()")

Parameters

SetOnLoad(text value)

Sets the OnLoad attribute script when the OnLoad event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnLoad("doSomething()")

Parameters

SetOnLoadStart(text value)

Sets the OnLoadStart attribute script when the OnLoadStart event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnLoadStart("doSomething()")

Parameters

SetOnLoadedData(text value)

Sets the OnLoadedData attribute script when the OnLoadedData event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnLoadedData("doSomething()")

Parameters

SetOnLoadedMetaData(text value)

Sets the OnLoadedMetaData attribute script when the OnLoadedMetaData event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnLoadedMetaData("doSomething()")

Parameters

SetOnMediaError(text value)

Sets the OnMediaError attribute script when the OnMediaError event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnMediaError("doSomething()")

Parameters

SetOnMessage(text value)

Sets the OnMessage attribute script when the OnMessage event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnMessage("doSomething()")

Parameters

SetOnMouseDown(text value)

Sets the OnMouseDown attribute script when the OnMouseDown event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnMouseDown("doSomething()")

Parameters

SetOnMouseMove(text value)

Sets the OnMouseMove attribute script when the OnMouseMove event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnMouseMove("doSomething()")

Parameters

SetOnMouseOut(text value)

Sets the OnMouseOut attribute script when the OnMouseOut event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnMouseOut("doSomething()")

Parameters

SetOnMouseOver(text value)

Sets the OnMouseOver attribute script when the OnMouseOver event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnMouseOver("doSomething()")

Parameters

SetOnMouseUp(text value)

Sets the OnMouseUp attribute script when the OnMouseUp event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnMouseUp("doSomething()")

Parameters

SetOnMouseWheel(text value)

Sets the OnMouseWheel attribute script when the OnMouseWheel event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnMouseWheel("doSomething()")

Parameters

SetOnOffline(text value)

Sets the OnOffline attribute script when the OnOffline event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnOffline("doSomething()")

Parameters

SetOnOnline(text value)

Sets the OnOnline attribute script when the OnOnline event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnOnline("doSomething()")

Parameters

SetOnPageHide(text value)

Sets the OnPageHide attribute script when the OnPageHide event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnPageHide("doSomething()")

Parameters

SetOnPageShow(text value)

Sets the OnPageShow attribute script when the OnPageShow event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnPageShow("doSomething()")

Parameters

SetOnPause(text value)

Sets the OnPause attribute script when the OnPause event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnPause("doSomething()")

Parameters

SetOnPlay(text value)

Sets the OnPlay attribute script when the OnPlay event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnPlay("doSomething()")

Parameters

SetOnPlaying(text value)

Sets the OnPlaying attribute script when the OnPlaying event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnPlaying("doSomething()")

Parameters

SetOnPopState(text value)

Sets the OnPopState attribute script when the OnPopState event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnPopState("doSomething()")

Parameters

SetOnProgress(text value)

Sets the OnProgress attribute script when the OnProgress event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnProgress("doSomething()")

Parameters

SetOnRateChange(text value)

Sets the OnRateChange attribute script when the OnRateChange event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnRateChange("doSomething()")

Parameters

SetOnReadyStateChange(text value)

Sets the OnReadyStateChange attribute script when the OnReadyStateChange event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnReadyStateChange("doSomething()")

Parameters

SetOnRedo(text value)

Sets the OnRedo attribute script when the OnRedo event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnRedo("doSomething()")

Parameters

SetOnResize(text value)

Sets the OnResize attribute script when the OnResize event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnResize("doSomething()")

Parameters

SetOnScroll(text value)

Sets the OnScroll attribute script when the OnScroll event is triggered.

Example Code

use Libraries.Web.Page.MouseAttributeAccepter
        use Libraries.Web.Page.Attribute

        MouseAttributeAccepter accept
        accept:SetOnScroll("doSomething()")

Parameters

SetOnSeeked(text value)

Sets the OnSeeked attribute script when the OnSeeked event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnSeeked("doSomething()")

Parameters

SetOnSeeking(text value)

Sets the OnSeeking attribute script when the OnSeeking event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnSeeking("doSomething()")

Parameters

SetOnSelect(text value)

Sets the OnSelect attribute. The OnSelect attribute is the script to be triggered when the OnSelect event occurs. OnSelect is fired the moment a form elements text is selected.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnSelect("upperCase()")

Parameters

SetOnStalled(text value)

Sets the OnStalled attribute script when the OnStalled event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnStalled("doSomething()")

Parameters

SetOnStorage(text value)

Sets the OnStorage attribute script when the OnStorage event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnStorage("doSomething()")

Parameters

SetOnSubmit(text value)

Sets the OnSubmit attribute. The OnSubmit attribute is the script to be triggered when the OnSubmit event occurs. OnSubmit is fired the moment a submit action occurs.

Example Code

use Libraries.Web.Page.FormAttributeAccepter
        use Libraries.Web.Page.Attribute

        FormAttributeAccepter accept
        accept:SetOnSubmit("upperCase()")

Parameters

SetOnSuspend(text value)

Sets the OnSuspend attribute script when the OnSuspend event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnSuspend("doSomething()")

Parameters

SetOnTimeUpdate(text value)

Sets the OnTimeUpdate attribute script when the OnTimeUpdate event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnTimeUpdate("doSomething()")

Parameters

SetOnUndo(text value)

Sets the OnUndo attribute script when the OnUndo event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnUndo("doSomething()")

Parameters

SetOnUnload(text value)

Sets the OnUnload attribute script when the OnUnload event is triggered.

Example Code

use Libraries.Web.Page.WindowAttributeAccepter
        use Libraries.Web.Page.Attribute

        WindowAttributeAccepter accept
        accept:SetOnUnload("doSomething()")

Parameters

SetOnVolumeChange(text value)

Sets the OnVolumeChange attribute script when the OnVolumeChange event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnVolumeChange("doSomething()")

Parameters

SetOnWaiting(text value)

Sets the OnWaiting attribute script when the OnWaiting event is triggered.

Example Code

use Libraries.Web.Page.MediaAttributeAccepter
        use Libraries.Web.Page.Attribute

        MediaAttributeAccepter accept
        accept:SetOnWaiting("doSomething()")

Parameters