Codex

Attention Help us to improve the Codex by filling out our documentation survey!

Function Reference/addLoadEvent

Description

For theme and plugin development: in order to have a Javascript function executed in the admin areas on load, or when the document is ready, use the following:

addLoadEvent('my_onload_function');


function my_onload_function(){
	alert('Look, the document has loaded.');
}


Usage

Parameters

This page is marked as incomplete. You can help Codex by expanding it.