Please help! Simple! Search the element on id and click it

Please help! Simple! Search the element on id and click it

Dear guys, hi!

I searched the forum and can't so far find the answer! I hope you can help me!

I'm new to programming and jQuery.

So what I need to do is to click the element id's with javascript (as I think).

I have

      <script type="text/javascript">
         $(document).ready(function(){
            $(".iframe").colorbox({width:1035, height:652, iframe:true});         
         });
      </script>
   </head>
   <body>



<a class='iframe' href="photogallery1.html">1</a>
<a class='iframe' href="photogallery2.html">2</a>


When I click the link 1 and 2 I have the lightbox like tool comming up!


What I need to do is to start it with javascript line not with <a> (which can be deleted at all)

How can I do it so eventually I can start photogallery1 and photogallery2 only by calling

javascript:something1 and javascript:something2