This is my code :
<html>
    <head>
        <title>Magento 2 </title>
        <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    </head>
    <body>
        <script type="text/javascript">
                function ajaxCall(){
                    $.post( "insert.php", function( data ) {
                        alert(data);
                        //$( ".result" ).html( data );
                    });
                }
        </script>
        <a href ="" onclick ="javascript:ajaxCall();"style="text-decoration:none;"><input type ="button" value="Executa"></a>
    </body>
</html>
the insert.php file contains:
<php 
   echo 1;
?>
I don't know what i wrote wrong ? It doesn't alert ! I tried to see also with firebug, but it doesn't display anything. Im wondering what im doing wrong ?. Thx
 
     
     
     
     
     
     
    