jQuery Mobile pageload event
Examples
In the external page loads successfully inserted into the DOM and pop-up information:
alert ( "pageload event trigger!");
});
try it"
Definition and Usage
After the 1.4.0 version is obsolete, use pagecontainerload instead.
pageload event page and successfully loaded into the DOM after the trigger.
Related events:
- pagebeforeload - prior to any loading event triggered
- pageloadfailed - it triggered after the page failed to load.
Note: The external page is loaded into the DOM, the event will certainly trigger type 2. Before loading the pagebeforeload event, and after loading pageload (loaded successfully) or pageloadfailed (failed to load).
grammar
参数 | 描述 |
---|---|
function(event,data) | pageload 事件触发后指定执行的函数
该函数含有以下两个参数: 事件对象 - 包括任何jQuery事件属性 ( event.target, event.type 等) 。更多信息请查阅 jQuery 事件参考手册 数据对象 - 包含以下类型:
|
More examples
Related events demonstrate.
pageload and presentation pageloadfailed events.
Event objects
Use event.type property to return the type of trigger event.
Data Objects
Use data.url return external URL of the page.