heloo alll iam new

heloo alll iam new

hi all its my first time her and i begin learn so this is my first code but he didnt work

<html>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <script type = "text/javascript" language = "javascript">

 
        $(document).ready(function() {

        var event = $.Event('click');
        event.clientX = 1;
        event.clientY = 1;
        $('div').trigger(event);

        $("div").click(function() {alert("Hello            , world!");});

    
});
      </script>
</head>
<body>
     <div id = "mydiv">
         Click on this to see a dialogue box.
      </div>
</body>
</html>
</html>


all i want is when the page load it get auto click on the line say *Click on this to see a dialogue box* with x.y to show the welcome box so can any 1 help thank you