For an experienced developer it is often easy to forget that once upon a time they too struggled with even the easiest of tasks and that not everyone has as much experience as them. The learning curve for developers is a steep one and one that I feel is steepest in the first year or two of building websites and applications. As part of the ‘Back to Basics’ series I aim to put into writing the tasks that I remember getting stuck on or that required research to help other new developers and to ease this learning process.
Method 1 – Adding an ‘onload’ to the <body> tag
<body onload="alert('Hello World!');">
Method 3 – Using jQuery
By using either of the above 3 methods you will get a popup when the page has finished loading.