Registers a function to execute when the page is loaded.
$m.onReady(function(eventObject) { $m.toast("Page loaded."); }); |
Syntax
$m.onReady(fp_onready)
Parameters
fp_onready
function (required)
Function to execute when the page is loaded.
context
Object (optional)
Context in which the function should execute. If not provided, the function will be executed in window context.