How can i call a method from a html which is loaded by ajax ( tab)

How can i call a method from a html which is loaded by ajax ( tab)

I am using jquery ui tab to load a html, in that html i have a method called alertMe.

  1. $("#tabs").tabs({
        beforeLoad : function(event, ui){
            ui.jqXHR.error(function(){
               
            });
            ui.jqXHR.success(function(){
                alertMe()
            });
        }
    }); 
  2.  <div id="tabs" style="height: 100%">
            <ul>
                <li><a href="Map.html">Tab 1</a></li>
            </ul>
        </div>





Inside the map.html i have the alertMe method. here it show alertMe is undifined.