window.onload = function() {
// do this stuff when the page is done loading
};
$(window).load(function() { // run this when the whole page has been downloaded });
$(document).ready(function() { // do this stuff when the HTML is all ready });
$(function() {
// run this when the HTML is done downloading
});
('< p></p>')
.html('Hey World!')
.css('background', 'yellow')
.appendTo("body");