Basically i want to call click event as soon as the document is loaded. Below is the sample code.
<!DOCTYPE html>
    <html>
    <head>
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script>
    $(document).ready(function(){
            $("a").trigger("click");
     });
    </script>
    </head>
    <body>
    <a href="http://google.com/">Link</a>
    </body>
    </html>
 
     
     
    