Just make this code in the <head> tags:-
And this body code:-
<body onLoad="loadalert()"> </body>
I don't think this needs any explanations!
As Always Feedback is welcome and the full source is attached!! ( although not so needed )