There are no tracking or monitoring cookies on this site. There are only cookies used for documentation examples related to cookies.
Close

Processing...
This may take a few seconds.

The "draw" event

This is a custom Active CSS event that occurs when any element is added to a page, whether it is pre-rendered or rendered on the page dynamically.

It will be called multiple times if the element is added then removed then added again, etc.

This can be a very useful event when you want to do something when an element is first drawn.

#myPTag:draw {
    render: "Hi there!";
}