Js onload handles the events after the HTML page is loaded



<script type="text/javascript">
window.onload=function(){
alert(" To load ")
}
</script>