hook_onload
- Versions
- 4.6
hook_onload()
Insert a JavaScript onload handler.
This hook enables modules to insert JavaScript into the body => onload event for every page view.
The returned statements will be automatically separated by semicolons, so including them in the returned array is optional.
Return value
An array of JavaScript statements to call during the onload event.
Related topics
Code
developer/hooks/core.php, line 700
<?php
function hook_onload() {
return array('my_javascript_function()');
}
?>Login or register to post comments 