Libraries.Web.Page.Body Documentation
The Body class represents HTML's (Hypertext Markup Language) body tag which contains the majority of the elements that a user sees on screen. Since the Body class is a WebTag, other elements can be added. By default, WebPages automatically have a body, so one rarely needs to create this object directly. You can find more information about this tag at: The body attribute.
Example Code
use Libraries.Web.Page.all
class Main
action main
WebPage page
Body body
Link link
link:SetAddress("www.google.com")
link:SetDescription("Google")
body:Add(link)
page:SetBody(body)
output page:Generate()
end
end
Inherits from: Libraries.Web.Page.AttributeAccepter, Libraries.Language.Object, Libraries.Web.Page.WindowAttributeAccepter, Libraries.Web.Page.GlobalAttributeAccepter, Libraries.Web.Page.WebTag
Summary
Actions Summary Table
Actions | Description |
---|---|
Add(Libraries.Web.Page.Highlight content) | This action places a Highlight object in the body of a WebPage. |
Add(Libraries.Web.Page.Inserted content) | This action places an Inserted object in the body of a WebPage. |
Add(Libraries.Web.Page.PerformanceGauge content) | This action places a PerformanceGauge object in the body of a WebPage. |
Add(Libraries.Web.Page.Article content) | This action places an Article object in the body of a WebPage. |
Add(Libraries.Web.Page.StrikeThrough content) | This action places a StrikeThrough object in the body of a WebPage. |
Add(Libraries.Web.Page.LineBreak content) | This action places a LineBreak object in the body of a WebPage. |
Add(Libraries.Web.Page.UnderlineText content) | This action places an UnderlineText object in the body of a WebPage. |
Add(Libraries.Web.Page.DefinitionTerm content) | This action places a DefinitionTerm object in the body of a WebPage. |
Add(Libraries.Web.Page.OwnerAddress content) | This action places an OwnerAddress object in the body of a WebPage. |
Add(Libraries.Web.Page.Audio content) | This action places an Audio object in the body of a WebPage. |
Add(Libraries.Web.Page.Form content) | This action places a Form object in the body of a WebPage. |
Add(Libraries.Web.Page.UnorderedList content) | This action places an UnorderedList object in the body of a WebPage. |
Add(Libraries.Web.Page.Heading content) | This action places a Heading object in the body of a WebPage. |
Add(Libraries.Web.Page.Section content) | This action places a Section object in the body of a WebPage. |
Add(Libraries.Web.Page.StrongText content) | This action places a StrongText object in the body of a WebPage. |
Add(Libraries.Web.Page.SuperscriptText content) | This action places a SuperscriptText object in the body of a WebPage. |
Add(Libraries.Web.Page.Footer content) | This action places a Footer object in the body of a WebPage. |
Add(Libraries.Web.Page.Attribute attribute) | This action adds an attribute to this object. |
Add(Libraries.Web.Page.Select content) | This action places a Select object in the body of a WebPage. |
Add(Libraries.Web.Page.DefinitionList content) | This action places a DefinitionList object in the body of a WebPage. |
Add(Libraries.Web.Page.NavigationDivision content) | This action places a NavigationDivision object in the body of a WebPage. |
Add(Libraries.Web.Page.Label content) | This action places a Label object in the body of a WebPage. |
Add(Libraries.Web.Page.KeyboardInput content) | This action places a KeyboardInput object in the body of a WebPage. |
Add(Libraries.Web.Page.Variable content) | This action places a Variable object in the body of a WebPage. |
Add(Libraries.Web.Page.ListOptions content) | This action places a ListOptions object in the body of a WebPage. |
Add(Libraries.Web.Page.Quote content) | This action places a Quote object in the body of a WebPage. |
Add(Libraries.Web.Page.Header content) | This action places a Header object in the body of a WebPage. |
Add(Libraries.Web.Page.BiDirectionalOverride content) | This action places a BiDirectionalOverride object in the body of a WebPage. |
Add(Libraries.Web.Page.CodeBlock content) | This action places a CodeBlock object in the body of a WebPage. |
Add(Libraries.Web.Page.OrderedList content) | This action places an OrderedList object in the body of a WebPage. |
Add(Libraries.Web.Page.FieldSet content) | This action places a FieldSet object in the body of a WebPage. |
Add(Libraries.Web.Page.BlockQuote content) | This action places a BlockQuote object in the body of a WebPage. |
Add(Libraries.Web.Page.ImageMap content) | This action places an ImageMap object in the body of a WebPage. |
Add(Libraries.Web.Page.Span content) | This action places a Span object in the body of a WebPage. |
Add(Libraries.Web.Page.Area content) | This action places an Area object in the body of a WebPage. |
Add(Libraries.Web.Page.KeyGenerator content) | This action places a KeyGenerator object in the body of a WebPage. |
Add(Libraries.Web.Page.Image content) | This action places an Image object in the body of a WebPage. |
Add(Libraries.Web.Page.Division content) | This action places a Division object in the body of a WebPage. |
Add(Libraries.Web.Page.Figure content) | This action places a Figure object in the body of a WebPage. |
Add(Libraries.Web.Page.Ruby content) | This action places a Ruby object in the body of a WebPage. |
Add(Libraries.Web.Page.Input content) | This action places an Input object in the body of a WebPage. |
Add(Libraries.Web.Page.Embed content) | This action places an Embed object in the body of a WebPage. |
Add(Libraries.Web.Page.Emphasize content) | This action places an Emphasize object in the body of a WebPage. |
Add(Libraries.Web.Page.SubscriptText content) | This action places a SubscriptText object in the body of a WebPage. |
Add(Libraries.Web.Page.SmallText content) | This action places a SmallText object in the body of a WebPage. |
Add(Libraries.Web.Page.InlineFrame content) | This action places an InlineFrame object in the body of a WebPage. |
Add(Libraries.Web.Page.NoScript content) | This action places a NoScript object in the body of a WebPage. |
Add(Libraries.Web.Page.WebTable content) | This action places a WebTable object in the body of a WebPage. |
Add(Libraries.Web.Page.Abbreviation content) | This action places a Abbreviation object in the body of a WebPage. |
Add(Libraries.Web.Page.ProgressBar content) | This action places a ProgressBar object in the body of a WebPage. |
Add(Libraries.Web.Page.Bold content) | This action places a Bold object in the body of a WebPage. |
Add(Libraries.Web.Page.Video content) | This action places a Video object in the body of a WebPage. |
Add(Libraries.Web.Page.HiddenContent content) | This action places a HiddenContent object in the body of a WebPage. |
Add(Libraries.Web.Page.PreformattedText content) | This action places a PreformattedText object in the body of a WebPage. |
Add(Libraries.Web.Page.Paragraph content) | This action places a Paragraph object in the body of a WebPage. |
Add(Libraries.Web.Page.BiDirectionalIsolation content) | This action places a BiDirectionalIsolation object in the body of a WebPage. |
Add(Libraries.Web.Page.Script content) | This action places a Script object in the body of a WebPage. |
Add(Libraries.Web.Page.MainContent content) | This action places a MainContent object in the body of a WebPage. |
Add(Libraries.Web.Page.TextArea content) | This action places a TextArea object in the body of a WebPage. |
Add(Libraries.Web.Page.Canvas content) | This action places a Canvas object in the body of a WebPage. |
Add(Libraries.Web.Page.Italic content) | This action places an Italic object in the body of a WebPage. |
Add(Libraries.Web.Page.Deleted content) | This action places a Deleted object in the body of a WebPage. |
Add(Libraries.Web.Page.Button content) | This action places a Button object in the body of a WebPage. |
Add(Libraries.Web.Page.Time content) | This action places a Time object in the body of a WebPage. |
Add(Libraries.Web.Page.SampleOutput content) | This action places a SampleOutput object in the body of a WebPage. |
Add(Libraries.Web.Page.Cite content) | This action places a Cite object in the body of a WebPage. |
Add(Libraries.Web.Page.PageBreak content) | This action places a PageBreak object in the body of a WebPage. |
Add(Libraries.Web.Page.Aside content) | This action places an Aside object in the body of a WebPage. |
Add(Libraries.Web.Page.Link content) | This action places a Link object in the body of a WebPage. |
Add(Libraries.Web.Page.WordBreak content) | This action places a WordBreak object in the body of a WebPage. |
Add(Libraries.Web.Page.EmbedContent content) | This action places an EmbedContent object in the body of a WebPage. |
AddAttribute(text name, text value) | This action adds an attribute to this object. |
AddClassAttribute(text value) | Adds to the ClassAttribute attribute. |
AddNestedTag(Libraries.Web.Page.WebTag tag) | This action adds a WebTag to the list of WebTags contained within the current WebTag. |
AddText(text value) | This action sets the description text for this WebTag. |
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. |
Generate() | |
GenerateAttributes() | This action returns a text description of all attributes stored. |
GenerateNestedTags() | This action generates the HTML output text of all of the nested WebTags. |
GetAccessKey() | Returns the AccessKey attribute. |
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. |
GetClassAttribute() | Returns the ClassAttribute attribute. |
GetContentEditable() | Returns the ContentEditable attribute. |
GetContextMenu() | Returns the ContextMenu attribute. |
GetDraggable() | Returns the Draggable attribute. |
GetDropZone() | Returns the DropZone attribute. |
GetHashCode() | This action gets the hash code for an object. |
GetHidden() | Returns the Hidden attribute. |
GetIdentifier() | Returns the Identifier attribute. |
GetIterator() | This action returns an iterator of all attributes stored in this object. |
GetLanguage() | Returns the Language attribute. |
GetNumberOfAttributes() | This action returns the number of attributes that are currently stored in this object. |
GetNumberOfNestedTags() | This action gets the number of nested tags within the current WebTag. |
GetOnAHasChange() | Returns the OnAHasChange attribute. |
GetOnAfterPrint() | Returns the OnAfterPrint attribute. |
GetOnBeforePrint() | Returns the OnBeforePrint attribute. |
GetOnError() | Returns the OnError attribute. |
GetOnLoad() | Returns the OnLoad attribute. |
GetOnMessage() | Returns the OnMessage attribute. |
GetOnOffline() | Returns the OnOffline attribute. |
GetOnOnline() | Returns the OnOnline attribute. |
GetOnPageHide() | Returns the OnPageHide attribute. |
GetOnPageShow() | Returns the OnPageShow attribute. |
GetOnPopState() | Returns the OnPopState attribute. |
GetOnRedo() | Returns the OnRedo attribute. |
GetOnResize() | Returns the OnResize attribute. |
GetOnStorage() | Returns the OnStorage attribute. |
GetOnUndo() | Returns the OnUndo attribute. |
GetOnUnload() | Returns the OnUnload attribute. |
GetSpellcheck() | Returns the Spellcheck attribute. |
GetStyle() | Returns the Style attribute. |
GetTabIndex() | Returns the TabIndex attribute. |
GetTag(integer index) | This action gets the number of nested tags within the current WebTag. |
GetTextDirection() | Returns the TextDirection attribute. |
GetTitle() | Returns the Title attribute. |
HasAttribute(text name) | This action returns whether or not an attribute exists for the key passed in as a parameter. |
Remove(Libraries.Web.Page.WebTag tag) | This action removes the first instance of a webtag found in the list of sub-WebTags. |
RemoveAttribute(text name) | This action removes an attribute with a particular key. |
SetAccessKey(text value) | Sets the AccessKey attribute. |
SetClassAttribute(text value) | Sets the ClassAttribute attribute. |
SetContentEditable(text value) | Sets the ContentEditable attribute. |
SetContextMenu(text value) | Sets the ContextMenu attribute. |
SetDraggable(boolean value) | Sets the Draggable attribute. |
SetDropZone(text value) | Sets the DropZone attribute. |
SetHidden(boolean value) | Sets the AccessKey attribute. |
SetIdentifier(text value) | Sets the Identifier attribute. |
SetLanguage(text value) | Creates and sets an attribute for language. |
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. |
SetOnError(text value) | Sets the OnError attribute script when the OnError event is triggered. |
SetOnHasChange(text value) | Sets the OnHasChange attribute script when the OnHasChange event is triggered. |
SetOnLoad(text value) | Sets the OnLoad attribute script when the OnLoad event is triggered. |
SetOnMessage(text value) | Sets the OnMessage attribute script when the OnMessage 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. |
SetOnPopState(text value) | Sets the OnPopState attribute script when the OnPopState 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. |
SetOnStorage(text value) | Sets the OnStorage attribute script when the OnStorage 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. |
SetSpellcheck(boolean value) | Sets the Spellcheck attribute. |
SetStyle(text value) | Sets the Style attribute. |
SetTabIndex(text value) | Sets the TabIndex attribute. |
SetTextDirection(text value) | Sets the TextDirection attribute. |
SetTitle(text value) | Sets the Title attribute. |
ToText() | This action generates text for a particular web page. |
Actions Documentation
Add(Libraries.Web.Page.Highlight content)
This action places a Highlight object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Highlight highlight
page:Add(highlight)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Highlight: specifies what will be added to the page.
Add(Libraries.Web.Page.Inserted content)
This action places an Inserted object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Inserted inserted
page:Add(inserted)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Inserted: specifies what will be added to the page.
Add(Libraries.Web.Page.PerformanceGauge content)
This action places a PerformanceGauge object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
PerformanceGauge performanceGauge
page:Add(performanceGauge)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.PerformanceGauge: specifies what will be added to the page.
Add(Libraries.Web.Page.Article content)
This action places an Article object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Article article
page:Add(article)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Article: specifies what will be added to the page.
Add(Libraries.Web.Page.StrikeThrough content)
This action places a StrikeThrough object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
StrikeThrough strikeThrough
page:Add(strikeThrough)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.StrikeThrough: specifies what will be added to the page.
Add(Libraries.Web.Page.LineBreak content)
This action places a LineBreak object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
LineBreak lineBreak
page:Add(lineBreak)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.LineBreak: specifies what will be added to the page.
Add(Libraries.Web.Page.UnderlineText content)
This action places an UnderlineText object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
UnderlineText underlineText
page:Add(underlineText)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.UnderlineText: specifies what will be added to the page.
Add(Libraries.Web.Page.DefinitionTerm content)
This action places a DefinitionTerm object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
DefinitionTerm definitionTerm
page:Add(definitionTerm)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.DefinitionTerm: specifies what will be added to the page.
Add(Libraries.Web.Page.OwnerAddress content)
This action places an OwnerAddress object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
OwnerAddress ownerAddress
page:Add(ownerAddress)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.OwnerAddress: specifies what will be added to the page.
Add(Libraries.Web.Page.Audio content)
This action places an Audio object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Audio audio
page:Add(audio)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Audio: specifies what will be added to the page.
Add(Libraries.Web.Page.Form content)
This action places a Form object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Form form
page:Add(form)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Form: specifies what will be added to the page.
Add(Libraries.Web.Page.UnorderedList content)
This action places an UnorderedList object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
UnorderedList unorderedList
page:Add(unorderedList)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.UnorderedList: specifies what will be added to the page.
Add(Libraries.Web.Page.Heading content)
This action places a Heading object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Heading heading
page:Add(heading)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Heading: specifies what will be added to the page.
Add(Libraries.Web.Page.Section content)
This action places a Section object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Section section
page:Add(section)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Section: specifies what will be added to the page.
Add(Libraries.Web.Page.StrongText content)
This action places a StrongText object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
StrongText strongText
page:Add(strongText)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.StrongText: specifies what will be added to the page.
Add(Libraries.Web.Page.SuperscriptText content)
This action places a SuperscriptText object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SuperscriptText superscriptText
page:Add(superscriptText)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.SuperscriptText: specifies what will be added to the page.
Add(Libraries.Web.Page.Footer content)
This action places a Footer object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Footer footer
page:Add(footer)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Footer: specifies what will be added to the page.
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
- Libraries.Web.Page.Attribute: The attribute that will be stored.
Add(Libraries.Web.Page.Select content)
This action places a Select object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Select select
page:Add(select)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Select: specifies what will be added to the page.
Add(Libraries.Web.Page.DefinitionList content)
This action places a DefinitionList object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
DefinitionList definitionList
page:Add(definitionList)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.DefinitionList: specifies what will be added to the page.
Add(Libraries.Web.Page.NavigationDivision content)
This action places a NavigationDivision object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
NavigationDivision navigationDivision
page:Add(navigationDivision)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.NavigationDivision: specifies what will be added to the page.
Add(Libraries.Web.Page.Label content)
This action places a Label object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Label label
page:Add(label)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Label: specifies what will be added to the page.
Add(Libraries.Web.Page.KeyboardInput content)
This action places a KeyboardInput object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
KeyboardInput keyboardInput
page:Add(keyboardInput)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.KeyboardInput: specifies what will be added to the page.
Add(Libraries.Web.Page.Variable content)
This action places a Variable object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Variable variable
page:Add(variable)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Variable: specifies what will be added to the page.
Add(Libraries.Web.Page.ListOptions content)
This action places a ListOptions object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
ListOptions listOptions
page:Add(listOptions)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.ListOptions: specifies what will be added to the page.
Add(Libraries.Web.Page.Quote content)
This action places a Quote object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Quote quote
page:Add(quote)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Quote: specifies what will be added to the page.
Add(Libraries.Web.Page.Header content)
This action places a Header object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Header header
page:Add(header)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Header: specifies what will be added to the page.
Add(Libraries.Web.Page.BiDirectionalOverride content)
This action places a BiDirectionalOverride object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
BiDirectionalOverride biDirectionalOverride
page:Add(biDirectionalOverride)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.BiDirectionalOverride: specifies what will be added to the page.
Add(Libraries.Web.Page.CodeBlock content)
This action places a CodeBlock object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
CodeBlock codeBlock
page:Add(codeBlock)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.CodeBlock: specifies what will be added to the page.
Add(Libraries.Web.Page.OrderedList content)
This action places an OrderedList object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
OrderedList orderedList
page:Add(orderedList)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.OrderedList: specifies what will be added to the page.
Add(Libraries.Web.Page.FieldSet content)
This action places a FieldSet object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
FieldSet fieldSet
page:Add(fieldSet)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.FieldSet: specifies what will be added to the page.
Add(Libraries.Web.Page.BlockQuote content)
This action places a BlockQuote object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
BlockQuote blockQuote
page:Add(blockQuote)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.BlockQuote: specifies what will be added to the page.
Add(Libraries.Web.Page.ImageMap content)
This action places an ImageMap object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
ImageMap imageMap
page:Add(imageMap)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.ImageMap: specifies what will be added to the page.
Add(Libraries.Web.Page.Span content)
This action places a Span object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Span span
page:Add(span)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Span: specifies what will be added to the page.
Add(Libraries.Web.Page.Area content)
This action places an Area object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Area area
page:Add(area)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Area: specifies what will be added to the page.
Add(Libraries.Web.Page.KeyGenerator content)
This action places a KeyGenerator object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
KeyGenerator keyGenerator
page:Add(keyGenerator)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.KeyGenerator: specifies what will be added to the page.
Add(Libraries.Web.Page.Image content)
This action places an Image object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Image image
page:Add(image)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Image: specifies what will be added to the page.
Add(Libraries.Web.Page.Division content)
This action places a Division object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Division division
page:Add(division)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Division: specifies what will be added to the page.
Add(Libraries.Web.Page.Figure content)
This action places a Figure object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Figure figure
page:Add(figure)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Figure: specifies what will be added to the page.
Add(Libraries.Web.Page.Ruby content)
This action places a Ruby object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Ruby ruby
page:Add(ruby)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Ruby: specifies what will be added to the page.
Add(Libraries.Web.Page.Input content)
This action places an Input object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Input input
page:Add(input)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Input: specifies what will be added to the page.
Add(Libraries.Web.Page.Embed content)
This action places an Embed object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Embed embed
page:Add(embed)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Embed: specifies what will be added to the page.
Add(Libraries.Web.Page.Emphasize content)
This action places an Emphasize object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Emphasize emphasize
page:Add(emphasize)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Emphasize: specifies what will be added to the page.
Add(Libraries.Web.Page.SubscriptText content)
This action places a SubscriptText object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SubscriptText subscriptText
page:Add(subscriptText)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.SubscriptText: specifies what will be added to the page.
Add(Libraries.Web.Page.SmallText content)
This action places a SmallText object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SmallText smallText
page:Add(smallText)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.SmallText: specifies what will be added to the page.
Add(Libraries.Web.Page.InlineFrame content)
This action places an InlineFrame object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
InlineFrame inlineFrame
page:Add(inlineFrame)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.InlineFrame: specifies what will be added to the page.
Add(Libraries.Web.Page.NoScript content)
This action places a NoScript object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
NoScript noScript
page:Add(noScript)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.NoScript: specifies what will be added to the page.
Add(Libraries.Web.Page.WebTable content)
This action places a WebTable object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
WebTable webTable
page:Add(webTable)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.WebTable: specifies what will be added to the page.
Add(Libraries.Web.Page.Abbreviation content)
This action places a Abbreviation object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Abbreviation abbreviation
page:Add(abbreviation)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Abbreviation: specifies what will be added to the page.
Add(Libraries.Web.Page.ProgressBar content)
This action places a ProgressBar object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
ProgressBar progressBar
page:Add(progressBar)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.ProgressBar: specifies what will be added to the page.
Add(Libraries.Web.Page.Bold content)
This action places a Bold object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Bold bold
page:Add(bold)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Bold: specifies what will be added to the page.
Add(Libraries.Web.Page.Video content)
This action places a Video object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Video video
page:Add(video)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Video: specifies what will be added to the page.
Add(Libraries.Web.Page.HiddenContent content)
This action places a HiddenContent object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
HiddenContent hiddenContent
page:Add(hiddenContent)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.HiddenContent: specifies what will be added to the page.
Add(Libraries.Web.Page.PreformattedText content)
This action places a PreformattedText object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
PreformattedText preformattedText
page:Add(preformattedText)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.PreformattedText: specifies what will be added to the page.
Add(Libraries.Web.Page.Paragraph content)
This action places a Paragraph object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Paragraph paragraph
page:Add(paragraph)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Paragraph: specifies what will be added to the page.
Add(Libraries.Web.Page.BiDirectionalIsolation content)
This action places a BiDirectionalIsolation object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
BiDirectionalIsolation biDirectionalIsolation
page:Add(biDirectionalIsolation)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.BiDirectionalIsolation: specifies what will be added to the page.
Add(Libraries.Web.Page.Script content)
This action places a Script object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Script script
page:Add(script)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Script: specifies what will be added to the page.
Add(Libraries.Web.Page.MainContent content)
This action places a MainContent object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
MainContent mainContent
page:Add(mainContent)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.MainContent: specifies what will be added to the page.
Add(Libraries.Web.Page.TextArea content)
This action places a TextArea object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
TextArea textArea
page:Add(textArea)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.TextArea: specifies what will be added to the page.
Add(Libraries.Web.Page.Canvas content)
This action places a Canvas object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Canvas canvas
page:Add(canvas)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Canvas: specifies what will be added to the page.
Add(Libraries.Web.Page.Italic content)
This action places an Italic object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Italic italic
page:Add(italic)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Italic: specifies what will be added to the page.
Add(Libraries.Web.Page.Deleted content)
This action places a Deleted object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Deleted deleted
page:Add(deleted)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Deleted: specifies what will be added to the page.
Add(Libraries.Web.Page.Button content)
This action places a Button object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Button button
page:Add(button)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Button: specifies what will be added to the page.
Add(Libraries.Web.Page.Time content)
This action places a Time object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Time time
page:Add(time)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Time: specifies what will be added to the page.
Add(Libraries.Web.Page.SampleOutput content)
This action places a SampleOutput object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
SampleOutput sampleOutput
page:Add(sampleOutput)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.SampleOutput: specifies what will be added to the page.
Add(Libraries.Web.Page.Cite content)
This action places a Cite object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Cite cite
page:Add(cite)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Cite: specifies what will be added to the page.
Add(Libraries.Web.Page.PageBreak content)
This action places a PageBreak object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
PageBreak pageBreak
page:Add(pageBreak)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.PageBreak: specifies what will be added to the page.
Add(Libraries.Web.Page.Aside content)
This action places an Aside object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Aside aside
page:Add(aside)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Aside: specifies what will be added to the page.
Add(Libraries.Web.Page.Link content)
This action places a Link object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
Link link
page:Add(link)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.Link: specifies what will be added to the page.
Add(Libraries.Web.Page.WordBreak content)
This action places a WordBreak object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
WordBreak wordBreak
page:Add(wordBreak)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.WordBreak: specifies what will be added to the page.
Add(Libraries.Web.Page.EmbedContent content)
This action places an EmbedContent object in the body of a WebPage.
Example Code
use Libraries.Web.Page.all
class Main
action Main
WebPage page
EmbedContent embedContent
page:Add(embedContent)
text value = page:Generate()
output value
end
end
Parameters
- Libraries.Web.Page.EmbedContent: specifies what will be added to the page.
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
- text name: The name of the attribute functions as a key. For example, in a link, we might have a "src" and an actual address, like google.com. In this case, the name would be equivalent to the src.
- text value: As an example of link, imagine we have a value of "src" and an actual address, like google.com. In this case, the value would be equivalent to google.com.
AddClassAttribute(text value)
Adds to the ClassAttribute attribute. Multiple class names can be listed in the passed text, separated by a space.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:AddClassAttribute("myClass")
Parameters
- text value: The classes to be added to the element
AddNestedTag(Libraries.Web.Page.WebTag tag)
This action adds a WebTag to the list of WebTags contained within the current WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
Parameters
- Libraries.Web.Page.WebTag: The WebTag to be added to the list of sub-WebTags.
AddText(text value)
This action sets the description text for this WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:AddDescription("name")
row:Add(cell)
Parameters
- text value: The text contained in the WebTag.
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
- Libraries.Language.Object: The object to compare to.
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
- Libraries.Language.Object: The to be compared.
Return
boolean: True if the hash codes are equal and false if they are not equal.
Generate()
Return
text
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:
GenerateNestedTags()
This action generates the HTML output text of all of the nested WebTags.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
output row:GenerateNestedTags()
Return
text: The text including all webtags within this WebTag.
GetAccessKey()
Returns the AccessKey attribute. Specifies a shortcut key for the web element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetAccessKey()
Return
Libraries.Web.Page.Attribute: The current AccessKey attribute.
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
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
- text name: The key value in this case is described in more detail in the documentation for this class's Add actions.
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.
GetClassAttribute()
Returns the ClassAttribute attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetClassAttribute()
Return
Libraries.Web.Page.Attribute: The current ClassAttribute attribute.
GetContentEditable()
Returns the ContentEditable attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetContentEditable()
Return
Libraries.Web.Page.Attribute: The current ContentEditable attribute.
GetContextMenu()
Returns the ContextMenu attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetContextMenu()
Return
Libraries.Web.Page.Attribute: The current ContextMenu attribute.
GetDraggable()
Returns the Draggable attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetDraggable()
Return
Libraries.Web.Page.Attribute: The current Draggable attribute.
GetDropZone()
Returns the DropZone attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetDropZone()
Return
Libraries.Web.Page.Attribute: The current DropZone attribute.
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.
GetHidden()
Returns the Hidden attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetHidden()
Return
Libraries.Web.Page.Attribute: The current Hidden attribute.
GetIdentifier()
Returns the Identifier attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetIdentifier()
Return
Libraries.Web.Page.Attribute: The current Identifier attribute.
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:
GetLanguage()
Returns the Language attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetLanguage()
Return
Libraries.Web.Page.Attribute: The current Language attribute.
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:
GetNumberOfNestedTags()
This action gets the number of nested tags within the current WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
integer numTags = row:GetSize()
Return
integer: The number of nested tags.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
GetSpellcheck()
Returns the Spellcheck attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetSpellcheck()
Return
Libraries.Web.Page.Attribute: The current Spellcheck attribute.
GetStyle()
Returns the Style attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetStyle()
Return
Libraries.Web.Page.Attribute: The current Style attribute.
GetTabIndex()
Returns the TabIndex attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetTabIndex()
Return
Libraries.Web.Page.Attribute: The current TabIndex attribute.
GetTag(integer index)
This action gets the number of nested tags within the current WebTag.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
WebTag tag = row:GetTag(0)
Parameters
Return
Libraries.Web.Page.WebTag: The number of nested tags.
GetTextDirection()
Returns the TextDirection attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetTextDirection()
Return
Libraries.Web.Page.Attribute: The current TextDirection attribute.
GetTitle()
Returns the Title attribute.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
Attribute attribute = accept:GetTitle()
Return
Libraries.Web.Page.Attribute: The current Title 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
- text name: The key value in this case is described in more detail in the documentation for this class's Add actions.
Return
boolean:
Remove(Libraries.Web.Page.WebTag tag)
This action removes the first instance of a webtag found in the list of sub-WebTags.
Example Code
use Libraries.Web.Page.TableRow
use Libraries.Web.Page.TableData
//TableRow and TableData are both WebTags
TableRow row
TableData cell
cell:SetDescription("name")
row:Add(cell)
row:Remove(cell)
Parameters
- Libraries.Web.Page.WebTag: The WebTag to remove from the list of WebTags.
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
- text name: The name of the attribute that should be removed.
Return
SetAccessKey(text value)
Sets the AccessKey attribute. Specifies a shortcut key for the web element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetAccessKey("z")
Parameters
- text value: The current AccessKey.
SetClassAttribute(text value)
Sets the ClassAttribute attribute. Specifies a class name for the element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetClassAttribute("myClass")
Parameters
- text value: The current ClassAttribute.
SetContentEditable(text value)
Sets the ContentEditable attribute. Specifies wether content in an element is editable.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetContentEditable("true")
Parameters
- text value: The current ContentEditable.
SetContextMenu(text value)
Sets the ContextMenu attribute. Specifies a context menu that contains the element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetContextMenu("parentmenu")
Parameters
- text value: The current ContextMenu.
SetDraggable(boolean value)
Sets the Draggable attribute. Specifies wether an element is draggable or not.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetDraggable(true)
Parameters
- boolean value: The current Draggable.
SetDropZone(text value)
Sets the DropZone attribute. This element specifies what happens when an element is dropped on a web page. The three valid values are copy, move, and link.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetDropZone("move")
Parameters
- text value: The current DropZone.
SetHidden(boolean value)
Sets the AccessKey attribute. Specifies wether an element is hidden or not.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetHidden(false)
Parameters
- boolean value: To true to hide element and false to make it visible.
SetIdentifier(text value)
Sets the Identifier attribute. Specifies a unique name for the element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetIdentifier("myElement")
Parameters
- text value: The current Identifier.
SetLanguage(text value)
Creates and sets an attribute for language. As these codes are esoteric in the standard on the web (HTML), we recommend using the LanguageCode class to help.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.LanguageCode
use Libraries.Web.Page.Link
LanguageCode code
//use any WebItem, in this case a link
Link link
link:SetLanguage(code:english)
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
- text value: The current OnAfterPrint attribute.
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
- text value: The current OnBeforePrint attribute.
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
- text value: The current OnBeforeUnload attribute.
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
- text value: The current OnError attribute.
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
- text value: The current OnHasChange attribute.
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
- text value: The current OnLoad attribute.
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
- text value: The current OnMessage attribute.
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
- text value: The current OnOffline attribute.
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
- text value: The current OnOnline attribute.
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
- text value: The current OnPageHide attribute.
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
- text value: The current OnPageShow attribute.
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
- text value: The current OnPopState attribute.
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
- text value: The current OnRedo attribute.
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
- text value: The current OnResize attribute.
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
- text value: The current OnStorage attribute.
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
- text value: The current OnUndo attribute.
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
- text value: The current OnUnload attribute.
SetSpellcheck(boolean value)
Sets the Spellcheck attribute. Specifies wether spellcheck is on or off.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetSpellcheck(true)
Parameters
- boolean value: The current Spellcheck.
SetStyle(text value)
Sets the Style attribute. Specifies inline css formatting for an element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetStyle("color:orange")
Parameters
- text value: The current Style.
SetTabIndex(text value)
Sets the TabIndex attribute. Specifies a tab order for elements.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetTabIndex("0")
Parameters
- text value: The current TabIndex.
SetTextDirection(text value)
Sets the TextDirection attribute. Specifies a direction for the text to be written. For example, "ltr" is left-to-right.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetTextDirection("rtl")
Parameters
- text value: The current TextDirection.
SetTitle(text value)
Sets the Title attribute. Specifies title information for the web element.
Example Code
use Libraries.Web.Page.GlobalAttributeAccepter
use Libraries.Web.Page.Attribute
GlobalAttributeAccepter accept
accept:SetTitle("MyTitle")
Parameters
- text value: The current Title.
ToText()
This action generates text for a particular web page. It is a helper action for Generate()
Example Code
use Libraries.Web.Page.WebPage
WebPage page
text result = page:ToText()
//output out the web page
output result
Return
text: This returns text in hypertext markup language (HTML) representing the tag.