GeekDork.WebSkeleton Reference

IProperties.BodyOnLoad Property

If not empty, property's value will be written into the body tags's "onLoad" client event. Use the Add() method to add items to the StringBuilder object. It's recommended that a semi-colon is used at the end of all entries to avoid client-side errors.

[Visual Basic]
Property BodyOnLoad As StringBuilder
[C#]
System.Text.StringBuilder BodyOnLoad {get;}

Example

Pops up a client-side alert when the page is first loaded.

BodyOnLoad.Add("alert('Page loaded');");

See Also

IProperties Interface | GeekDork.WebSkeleton Namespace